https://github.com/chocobo1/image_optimize_helpers
scripts for batch optimizing image files
https://github.com/chocobo1/image_optimize_helpers
bmp image jpeg optimize png python webp
Last synced: 7 months ago
JSON representation
scripts for batch optimizing image files
- Host: GitHub
- URL: https://github.com/chocobo1/image_optimize_helpers
- Owner: Chocobo1
- Created: 2016-10-16T05:52:14.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-06-30T07:03:26.000Z (over 6 years ago)
- Last Synced: 2025-01-25T15:24:07.574Z (9 months ago)
- Topics: bmp, image, jpeg, optimize, png, python, webp
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# image_optimize_helpers
## Notes for myself
Most of the time, I'll want:
```shell
python enumFiles.py | concurrent -
```* `enumFiles.py`:
Enumerate files in a directory (and subdirectories).
* `recurisve = True`: list files in subdirectories.
* `ext = None`: list all files.
`ext = "png"`: list only PNG files.
* `transcode.py`
All the hard work of manipulating files safely & handling unicode filenames are done here.
* Choose 1 helper function from the below list:
| Helper | Notes |
| ------ | ----- |
| `runDeflopt()` | Optimize PNG files via [Deflopt](https://web.archive.org/web/20140209022101/http://www.walbeehm.com/download/) |
| `runOptipng()` | Optimize PNG files via [OptiPNG](http://optipng.sourceforge.net/). |
| `runPngout()` | Optimize PNG files via [PNGOUT](http://advsys.net/ken/utils.htm). |
| `optimizePNG()` | A sequence of actions (that I often use) to compress PNG files. |
| `runJpegoptim()` | Optimize JPG files via [jpegoptim](https://github.com/tjko/jpegoptim). |
| `runCwebp()` | Run [WebP](https://developers.google.com/speed/webp/). |* [`concurrent`](https://github.com/Chocobo1/concurrent)
A tool to utilize multicore CPU.