Skip to main content

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:

-d / --distance 0 (lossless)
-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.
Adjust with:

-t / --threads

Basic usage:
compress_comics -O output_directory

To check all program options:
compress_comics -h

Needs cjxl installed and in PATH.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

compress_comics-1.0.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

compress_comics-1.0.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file compress_comics-1.0.0.tar.gz.

File metadata

  • Download URL: compress_comics-1.0.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for compress_comics-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f47a8ccd22f1aee8f21d480226db3753185f30acbe3d43d3579941137e70ecd6
MD5 c104adc9d68c0be413f8f98e42ec2122
BLAKE2b-256 a22be5f70cba3e5d33d24635a441d3e5eeaf36ee46af3049b175c72e7c014b15

See more details on using hashes here.

File details

Details for the file compress_comics-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for compress_comics-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 10236608078b0973599b322f170df0188d293779959d33a7fc1cda9e97c4edfa
MD5 f264c4db22326eb81784355627359534
BLAKE2b-256 7a76bcd8847c33b00862d14b69715eb2d85729366cd4dbf4aed0a2e811dc45a7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page