Script in Python to convert all the jpeg of a folder recursively with Guetzli
Go to file
2020-07-15 12:05:02 +02:00
.gitignore Upload to pip 2017-10-29 20:42:13 +01:00
demo.jpg Add demo 2018-01-09 23:39:41 +01:00
guetzli_recursively.py feat: Add memlimit arg 2020-07-14 22:39:09 +01:00
LICENSE.txt Upload to pip 2017-10-29 20:42:13 +01:00
README.md Update README.md 2020-07-15 12:05:02 +02:00
setup.py Update setup.py 2020-07-15 11:49:39 +02:00

Guetzli is a Google program to optimize JPEG images. Unfortunately, it only works one file at a time. With this script in Python you can do it recursively a whole folder.

Image optimized with guetzli-recursively

after and before

Image Author: Senjuti Kundu

Install

Guetzli must be installed on your system. Follow the official instructions. Guetzli

and 2.7.10 or Python 3.

After

pip3 install guetzli-recursively

Use

guetzli_recursively [folder]

Example

guetzli_recursively img/

out

img/tasks.jpg
Save 6%
img/portfolio/idecrea/space.jpg
It is not necessary to optimize
img/portfolio/home.jpg
Save 3%

Quality

Must be greater than or equal to 84.

guetzli_recursively --quality 85 img/

Mem limit (bytes)

guetzli_recursively --quality 85 --memlimit 28000

GUIs