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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8488f764f93f9d7fda1d3af6ac04f55e97148025f14266b6ef8e74f26e51bf50 |
|
MD5 | e602dedea895f6e4b72d9244edba8fe0 |
|
BLAKE2b-256 | aaaf7d07635b472957aafc62a7f72adc878c7943fe5cf07e40f24396a2c5305d |
Close
Hashes for compress_comics_thehardew-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 599e396b4341427130427fd50a37a101bfd1c767fa16342798b591dc925189aa |
|
MD5 | adae184d1501a9c90729ebf2da684a46 |
|
BLAKE2b-256 | 2f1bb6e8366cb10167f4cc6f45e9354ea291af10d4f8329d59438da3d97581d8 |