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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | da70d498c27814a362f4af5095e6cb57ce0c260234d79997f2f13c7757ef90f0 |
|
MD5 | bbceb2ba01f9ab8b7c42020fd63ca5f0 |
|
BLAKE2b-256 | e03ddbfd5a28143cdc397f00a2ea96322cee604b4b8543d4eec71e93c3886723 |
Close
Hashes for compress_comics_thehardew-0.4.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a10d6fb17c43aca5620d48b4235f020a0147c60b00573210453476c05b12eb06 |
|
MD5 | 6392b0be7ea5ec4d168fc5a5a20e2cb2 |
|
BLAKE2b-256 | 304d2205b82eb7854612ec26e6920d18ae5b2d9612373ad72db46f6544716e7d |