guetzli-recursively/README.md

57 lines
1016 B
Markdown
Raw Normal View History

2017-03-18 17:34:12 +01: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.
2018-01-09 23:39:41 +01:00
## Image optimized with **guetzli-recursively**
![after and before](demo.jpg)
2018-01-09 23:46:01 +01:00
Image Author: [Senjuti Kundu](https://unsplash.com/@senjuti?utm_medium=referral&utm_campaign=photographer-credit&utm_content=creditBadge)
2017-04-20 01:23:49 +02:00
2017-03-18 17:34:12 +01:00
# Install
Guetzli must be installed on your system. Follow the official instructions.
[Guetzli](https://github.com/google/guetzli)
2017-05-08 10:58:24 +02:00
and 2.7.10 or Python 3.
2017-03-18 17:34:12 +01:00
2017-10-29 20:42:13 +01:00
After
```bash
pip3 install guetzli-recursively
```
2017-03-18 17:34:12 +01:00
# Use
```bash
2017-10-29 20:42:13 +01:00
guetzli_recursively [folder]
2017-03-18 17:34:12 +01:00
```
2017-03-18 17:38:20 +01:00
## Example
2017-03-18 17:34:12 +01:00
```bash
2017-10-29 20:42:13 +01:00
guetzli_recursively img/
2017-03-18 17:34:12 +01:00
```
2017-03-18 17:38:20 +01:00
out
2017-03-18 17:37:05 +01:00
```bash
img/tasks.jpg
Save 6%
img/portfolio/idecrea/space.jpg
It is not necessary to optimize
img/portfolio/home.jpg
Save 3%
```
2018-01-05 16:28:24 +01:00
# Quality
Must be greater than or equal to 84.
```bash
guetzli_recursively --quality 85 img/
```
2018-01-09 23:46:01 +01:00
# GUIs
- [Mac OS](https://github.com/tanrax/guetzli-recursively-gui)