Simple utility to compress images on a given path
Project description
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 file.
Usage
Command: 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
Example
python3 simple_image_compressor.py -v 2 "/home/username/images/folder1/"
python simple_image_compressor.py -v 2 "C:\users\username\Images\folder1\"
PS: First project in Python.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for simple_image_compressor-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4184005000e7d1748ab7825c90db3ca5e15880ca99abade4c8151e8f8bb9ffa4 |
|
MD5 | a8ac0167d712631843b72fda22c58005 |
|
BLAKE2b-256 | 3292f3b41e1a657419ee4d71cd4a47b9cb53bcf4a3be86b2758cb1b15179d0f7 |