Compress images in cbz/cbr files with jpegxl, fast.
Project description
compress_comics
Find all the cbz/cbr files in the current directory and subdirectories and compress all the jpg/png/gif images inside with jpeg xl.
Output files preserve the folder structure.
Repacks cbr into cbz.
By default, compresses with:
--brotli_effort 11
-e / --effort 9
-d / --distance 0 (lossless)
-E / --modular_nb_prev_channels 3
-j / --lossless_jpeg 1
Compresses as many images in parallel as there are threads.
Because of that, it may run out of memory on bigger resolutions.
Basic usage:
python compress_comics.py output_directory
To check all program options:
python compress_comics.py -h
Needs cjxl
installed and in PATH.
Needs the patool library.
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 Distribution
Built Distribution
Close
Hashes for compress_comics_thehardew-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbe1c77983d966806ddd78fb2aee95afad431c01c4bd67f40a360aa1868ecbb4 |
|
MD5 | df93975a4c8edf18867c547a9b7e5639 |
|
BLAKE2b-256 | a633a520f986e5152bcfb6874bc93d79de9c9a4de3ff3a9d90b745ff77be848e |
Close
Hashes for compress_comics_thehardew-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bf202f6628bdbc3dcaefa55b72ec80e65bfdcb31b57f674c2894f12fbd52361 |
|
MD5 | 64bed9ffa23dd862d453c86a384238c5 |
|
BLAKE2b-256 | 8cbc5fd7c5a2500bc2287b92d01522f49278616386b7a34efbf2c01915b0288f |