A simple tool that scans a folder and all its subfolders and losslessly compresses images — similar to TinyPNG, but local and free.
PNG, JPG/JPEG, WebP, GIF
- Download
compress_images.exe - Drop it into any folder containing images
- Double-click it
pip install -r requirements.txt
python compress_images.py # compresses images in the current folder
python compress_images.py C:\path\to\folder # or specify a folderInstall oxipng and make sure it's on your PATH. The tool will detect it automatically and use it for significantly better PNG compression.
winget install oxipng- Files are only replaced if the compressed version is smaller — originals are never degraded
- Subdirectories are scanned recursively