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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50e6fd9ca41aaf3fc9e8895e4d511e1094f4de2f2bd61a242897d5d99fc64ae1 |
|
MD5 | 30e459289e1bce43cd60a6000ea867e4 |
|
BLAKE2b-256 | 79b514751884027f8f2e30f5058af77c6b2bf272e89bd1dffdea2c91e539d970 |
Close
Hashes for compress_comics_thehardew-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b0dcc4ca5c3b84e02fe2cf1255e34b75e198dddbb4c1ed5d35a126d59d3b316 |
|
MD5 | ef52eeada2c4716627075531ac2d658c |
|
BLAKE2b-256 | 374a4a26aa88a2237b500a7455945eb29eaef5bf570f759406f3c9f72812242b |