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.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 868f49869e8741c6ba5bbe9b2dcfc0f6e70653541966ce29253a196b2ace2edc |
|
MD5 | bdb9874deb619e1cc82a1df2504fb54b |
|
BLAKE2b-256 | 61372d9833c5c8fcd835e494977f3ddd164f071548bbc5d471e01f716f21f5bf |
Close
Hashes for compress_comics_thehardew-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03b6a86223b26720e0af44f93290169624a93b699ca98e25b43282cbec77ce84 |
|
MD5 | c6adc299b287f9daace706affa4bd843 |
|
BLAKE2b-256 | 3eaac4110130ebb3dde3d9c6eb9c5df06afd4db7f6a5a9d1bc22df369202d11f |