Skip to main content

CBZFit

Fit manga and comic archives to your screen.

CBZFit resizes images in CBZ archives to fit within a target display, while preserving their aspect ratio. It can preserve source image formats, or convert them to JPEG, PNG or WebP. Images that require no transformation are copied byte-for-byte by default. CBZFit preserves non-image members and leaves the source archive unchanged by default.

Features

  • Fit portrait pages and landscape spreads to a target display
  • Preserve source formats or convert images to JPEG, PNG, or WebP
  • Copy unchanged images without re-encoding
  • Configure JPEG, PNG, and WebP encoding
  • Apply valid EXIF orientation before resizing
  • Preserve compatible ICC profiles by default
  • Preserve archive member order and non-image members such as ComicInfo.xml
  • Verify completed archives before atomic publication
  • Report image transformations, operations, elapsed time, and archive-size change

Requirements

  • Python 3.12 or later

Installation

Install CBZFit with pipx:

pipx install cbzfit

For alternative installation methods, upgrading, and development installation, see Installation and Upgrading.

Quick start

Screen dimensions are required, must be positive, and must be supplied in portrait orientation.

cbzfit "Manga Volume 01.cbz" --screen-width 1404 --screen-height 1872

When DESTINATION is omitted, the source must end in .cbz or .zip. CBZFit writes the result beside the source with [CBZFit] inserted before the final extension. The above command results in:

Manga Volume 01 [CBZFit].cbz

Specify the destination when needed:

cbzfit zipped-images.data comic-resized.cbz --screen-width 1404 --screen-height 1872

Select JPEG as the output format:

cbzfit png-source.cbz jpg-destination.cbz --screen-width 1404 --screen-height 1872 --output-format jpeg

Good to know

CBZFit processes ZIP-based archives containing static JPEG, PNG, or WebP images. It rejects invalid archives, animated images, encrypted members, unsupported compression, special ZIP member types, unsafe or colliding paths, image content not matching its extension, and data exceeding configured safety limits.

By default, CBZFit assumes that the reader or device displays landscape spreads (double pages) in landscape orientation. CBZFit therefore fits landscape images within landscape display bounds but does not rotate them.

Output is written to a temporary archive beside the destination. It is verified by default and published atomically. The source remains unchanged unless in-place replacement is explicitly requested. Existing destinations are not overwritten unless replacement is explicitly requested.

Learn more

  • User guide: workflows, behavior, metadata, compatibility, summaries, troubleshooting and installation
  • CLI reference: complete options, defaults, accepted values, boundaries, and interactions

Run the built-in help for a concise command summary:

cbzfit --help

Versioning

CBZFit follows Semantic Versioning. Before 1.0, minor releases may introduce documented CLI or behavior changes.

User-visible changes are recorded in the changelog.

License

CBZFit is licensed under the GNU General Public License v3.0 or later.

Inspiration

Kindle Comic Converter & reCBZ

Metadata

Release files for cbzfit 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cbzfit 0.2.0
File Size Uploaded Provenance Actions
cbzfit-0.2.0.tar.gz 103.7 kB With provenance Details for cbzfit-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cbzfit 0.2.0
File Interpreter ABI Platform Actions
cbzfit-0.2.0-py3-none-any.whl Python 3 none any Details for cbzfit-0.2.0-py3-none-any.whl

Total release size: 144.0 kB

Release files / cbzfit-0.2.0.tar.gz

Download URL cbzfit-0.2.0.tar.gz
Size 103.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4ceaaf0482af48b394628e82412800c05994355e3b86578cd800f25bb6319b66
BLAKE2b-256 checksum
How to use checksums
41b00c70246451e79db1d35e1baaefb583a89039144eba8e5d67adf7452694ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / cbzfit-0.2.0-py3-none-any.whl

Download URL cbzfit-0.2.0-py3-none-any.whl
Size 40.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31edba793685efdcb01fe7ea0318ab2f641ef6a6836c1507d009a6dbf5ff1f0a
BLAKE2b-256 checksum
How to use checksums
4a7b03b3aa637b9f5baa887961f12a1eaffee3dc3556abe4c9622aad04b3f17d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Security for cbzfit 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cbzfit-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page