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.4.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29157c053aacac0d3c375e08d9ee084a3a16b7fc87705c96ea89cdb361a19a96 |
|
MD5 | 272eeb802cc776e30a5bceec71e35121 |
|
BLAKE2b-256 | badaf6533cede717993ee70b35f3acf0e2625ae9af438159ce0bd572a7a8de03 |
Close
Hashes for compress_comics_thehardew-0.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7119b3f82e3aea91c92a51e7db36b4b9214c4134a3aa2ad1fca7b870fa4bfbc |
|
MD5 | 8bc11e1e8eef1af8b56b5f87c5895998 |
|
BLAKE2b-256 | fcbb750c6cc923e5a857b5237676761d8bbbd4e0dd6cd73fccf3e853813fa2d4 |