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.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74f88939cc21cf1b0d44eae78dac718bc0f41c534ca3713461e43333393c5a45 |
|
MD5 | 5a25ae738ccc35bf543cced47398165c |
|
BLAKE2b-256 | 5f5f9793e1cc5a6bc4c22c9b4cb1c21e55532c0a992f036c882c8b2d8eab5617 |
Close
Hashes for compress_comics_thehardew-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fe559ce217d2afd1931db1e3497e98f3e518a4a68a3adb406a82eb8cc517fb9 |
|
MD5 | b8c700b21da8dcf738742edf5fce6333 |
|
BLAKE2b-256 | a7bcd47e282c0523f9cbf8a5b2c37c20261f01e8e063eafe587ea58fc5c026dd |