A simple comic conversion library between CBZ/EPUB/MOBI/PDF
Project description
Comicon
Comicon is a lightweight comic converter library between CBZ, PDF, EPUB, and MOBI that preserves metadata. Once Comicon has converted a comic, it is guaranteed that the reverse conversion will restore the original comic with all of its original metadata.
Usage
For a command line interface, please see Mandown.
import comicon
comicon.convert("comic.cbz", "comic.epub")
Installation
Amazon's Kindlegen is required if you want to convert to MOBI. See here for more information.
Comicon is available from PyPI:
pip install comicon
Supported conversions
Format | Convert from? | Convert to? |
---|---|---|
CBZ | :heavy_check_mark: | :heavy_check_mark: |
EPUB | :heavy_check_mark: | :heavy_check_mark: |
:heavy_check_mark: | :heavy_check_mark: | |
MOBI | :x: | :heavy_check_mark: |
Format discrepancies
- Only EPUB supports a table of contents. CBZ and PDF will encode the table of contents so that it is restored upon converting to EPUB.
- PDF does not support importing genre data due to a lack of library support. This may be worked around in the future.
Notes
Under the hood, Comicon converts each format into the Comicon Intermediate Representation (CIR) — more or less a strictly structured folder, which allows for many guarantees to be made for each input and output plugin. See comicon.cirtools
for more information.
For new input and output formats to be added, they should be added in comicon.inputs
or comicon.outputs
respectively as a new module and in the __init__.py
file(s).
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
File details
Details for the file comicon-1.2.0.tar.gz
.
File metadata
- Download URL: comicon-1.2.0.tar.gz
- Upload date:
- Size: 25.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.9-zen1-2-zen
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa1a5d35b738a00262997a1b01f69b09e8c540be6c2281d4856aeb9949d381ee |
|
MD5 | 25238731fa377a4af57f8453e5ccace4 |
|
BLAKE2b-256 | 49b86698a337d76de6947112effe1a9a119000e682901dd5759d03938ccb6b24 |
File details
Details for the file comicon-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: comicon-1.2.0-py3-none-any.whl
- Upload date:
- Size: 30.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.9-zen1-2-zen
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6e2359bdbdd66d93e1cf177d9c88a7b21a23089aebda362d4a8cefbd188f864 |
|
MD5 | b328a0318b0aa93a4d3b47afe07316a6 |
|
BLAKE2b-256 | bda1b85107903b19aff288c8dadcaf6967307eb2d28ed38ea132625112cd6f1f |