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.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0329dc8d44a3d21935440c1e389b00483ec8680733c3e0836c8038aad6b6438 |
|
MD5 | f2aa7d1628ba8497bd05ad5c122172d8 |
|
BLAKE2b-256 | 6bfaf168c80bc5cc57057b25f4a5ae71d2b41806a978d036d5104eff8f495ea2 |
Close
Hashes for compress_comics_thehardew-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37a8b4e98c41e7e32c200728ac5e66e96ae3a1af8d642c8ce744e2db1c9323e7 |
|
MD5 | bb3130df2579c2ca6c289e603cb5b142 |
|
BLAKE2b-256 | c4d824eb791c54ab385f77722365ea85be0dcbe79a641851c21ef53689604ce3 |