Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tanrax/guetzli-recursively
Script in Python to convert all the jpeg of a folder recursively with Guetzli
https://github.com/tanrax/guetzli-recursively
guetzli image-processing jpeg python
Last synced: about 2 months ago
JSON representation
Script in Python to convert all the jpeg of a folder recursively with Guetzli
- Host: GitHub
- URL: https://github.com/tanrax/guetzli-recursively
- Owner: tanrax
- License: mit
- Created: 2017-03-18T16:25:40.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-07-15T10:05:32.000Z (over 4 years ago)
- Last Synced: 2024-11-06T06:43:26.229Z (2 months ago)
- Topics: guetzli, image-processing, jpeg, python
- Language: Python
- Homepage:
- Size: 860 KB
- Stars: 33
- Watchers: 7
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
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](demo.jpg)
Image Author: [Senjuti Kundu](https://unsplash.com/@senjuti?utm_medium=referral&utm_campaign=photographer-credit&utm_content=creditBadge)
# Install
Guetzli must be installed on your system. Follow the official instructions.
[Guetzli](https://github.com/google/guetzli)and 2.7.10 or Python 3.
After
```bash
pip3 install guetzli-recursively
```# Use
```bash
guetzli_recursively [folder]
```## Example
```bash
guetzli_recursively img/
```out
```bash
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.
```bash
guetzli_recursively --quality 85 img/
```# Mem limit (bytes)
```bash
guetzli_recursively --memlimit 28000 img/
```# GUIs
- [Mac OS](https://github.com/tanrax/guetzli-recursively-gui)