https://github.com/sebastianserrani/simple_image_compressor
Simple utility to compress images
https://github.com/sebastianserrani/simple_image_compressor
image-processing multiprocessing pillow python
Last synced: about 5 hours ago
JSON representation
Simple utility to compress images
- Host: GitHub
- URL: https://github.com/sebastianserrani/simple_image_compressor
- Owner: sebastianserrani
- License: mit
- Created: 2021-07-03T02:55:32.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-03T21:52:16.000Z (about 5 years ago)
- Last Synced: 2026-06-04T01:04:07.498Z (about 1 month ago)
- Topics: image-processing, multiprocessing, pillow, python
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Image Compressor
Simple utility to compress images on a given path, with recursion.
It uses multiple processes to consume the source directories queue.
Does not preserve image metadata.
See the [settings](settings.json) file.
**Usage**: `simple_image_compressor.py [-h] [-v {0,1,2,3}] [-s] [-t] [-n] path [path ...]`
**Positional arguments**:
`path` paths separated with spaces (paths with spaces must be quoted)
**Optional arguments**:
`-h, --help` show the help message and exit
`-v {0,1,2,3}` verbosity level: 0=log file, 1=print dirs, 2=print files, 3=print json
`-s` soft compression: doesn't resize, just compresses up to 80% quality
`-t` temp output: doesn't replace source images, instead saves compressed images to %temp%
`-n` no exceptions: process directories even if they're in the exceptions list
> PS: First project in Python.