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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 077c52dec254b3f250ef7858852f4779df2c01a8d46a7f851812d8c45013e9c2 |
|
MD5 | 701884689918178f8de8cc2a5b03b9e4 |
|
BLAKE2b-256 | a88beff3262cd9e64790eedf46829769702c27de8cb066148eaf7a81a0f238d0 |
Close
Hashes for compress_comics_thehardew-0.4.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 733b639097936681e152cadf0e09f847d213e2446e58c5a10f628fa486f7c163 |
|
MD5 | 02bc01aa1359cf3478c1e989bc6c9d00 |
|
BLAKE2b-256 | c1334a020eb5ebd75a6ccb11154abbfbd88fabaa3190eefd64f11d54db8f6dcc |