Compress All the Images in a Folder by Single Click

Easily Compress all the images in any folder without lossing too much quality.

November 14, 2025
1 min read
automationimages

How to use this Trick

You can copy the code below, or download the Full Project for the best experience.

1. ConfigureUse the inputs below to customize the code variables.
2. DownloadGet the zip file containing the source code.
3. Run (Windows)Unzip and double-click run_windows.bat.
3. Run (Mac/Linux)Unzip and double-click run_mac.command.

Configuration

Code Editor (python)

Download Full Project

Get the complete source code with your configuration applied. Includes one-click runner scripts for Windows and macOS.

run_windows.batrun_mac.command100% Open Source

Overview

Related Tricks