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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ede6cdc1d3f74f0c0ca4bd3777038c7ff8270bbd45340ada7825a643afc323b |
|
MD5 | 4fbcfbca345a535a9e71e1dd17cddb84 |
|
BLAKE2b-256 | 700b7b93b2e20f35287ad534d3422e651f09035e14727ef33d4eb1c35ad1b055 |
Close
Hashes for compress_comics_thehardew-0.4.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82a3db0dfb8d058fcb288e7b5e2f35254785f91722a6907cf17c5fcd83f60083 |
|
MD5 | d155ae4934d8afff96395b26ad8cb1c4 |
|
BLAKE2b-256 | cd0a85b8e2688a2e9f87f14db67459ca6a38b0da76d5001610e23c8bed7987da |