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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d7f871759095234bd7b33e94c3b3d55e7edb48da659d68934f1eea59e1f48c8 |
|
MD5 | 15f0aaf3c1f26b3ea8ca4e5901eddaa5 |
|
BLAKE2b-256 | f5ef6c2598757e1b32a532e0c68fbf8cc152e5745fdd7e3bc9485e2d4a0f24ff |
Close
Hashes for compress_comics_thehardew-0.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0f24308a801845bae69a9bcfadb554482b66382f8243e241f204a7582e13fa6 |
|
MD5 | 420b451cd08ffea5b4cb63e484ef7540 |
|
BLAKE2b-256 | 9178a0fd287f688bc871e6e6244ae8660a25529660c4f0afb23b419b3401b9de |