Will recursively process image files in source directory, optimizing them with Guetzli and writing to output directory. Processing is slow, memory and CPU intensive. EXIF data will be preserved
Optionally supports online processing using TinyJPG and Kraken.io
Guetzli is a JPEG encoder that aims for excellent compression density at high visual quality. Guetzli-generated images are typically 20-30% smaller than images of equivalent quality generated by libjpeg. Guetzli generates only sequential (nonprogressive) JPEGs due to faster decompression speeds they offer.
- JPEG (.jpg .jpeg)
- PNG (.png)
Supports Windows, Linux, MacOS and probably other OSes.
pip install guetzlidir
You can download and use it as single Windows binary, see Releases
guetzlidir --minsize 300 --quality 80 /home/username/myphotos /home/username/photos_out
./guetzlidir.exe "c:\Users\username\Pictures\My Vacation" "c:\Users\username\Pictures\My Vacation Optimized Pictures"
Get API key, then:
guetzlidir --minsize 300 --tinypng api_key /home/username/myphotos /home/username/photos_out
Support is removed because no supported version is available in PyPi. See this.
Windows release 0.3.2 still has it's support: Download exe.
Paths with spaces in windows are problematic. Looking for a solution.