Skip to content

Script in Python to convert all the jpeg of a folder recursively with Guetzli

License

Notifications You must be signed in to change notification settings

tanrax/guetzli-recursively

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 --memlimit 28000 img/

GUIs

About

Script in Python to convert all the jpeg of a folder recursively with Guetzli

Topics

Resources

License

Stars

Watchers

Forks

Languages