Convert PDF, CBR and EPUB comics / manga / BD to CBZ format.
The tool can take a PDF, a CBR or an EPUB file and convert it as a CBZ file.
This is mainly a tool based on my usage ans my needs. It is based on different source mainly to continue to learn Python and learn how these file format works
usage: convert2cbz [-h] [-o OUTPUT] [-d DPI] [-q QUALITY] [-f {jpeg,png}] [-l LOGFILE] [-a] path
Convert compatible files to CBZ format. Can be use with one file argument or scan an entire directory.
positional arguments:
path File or directory
options:
-h, --help show this help message and exit
-o OUTPUT, --output OUTPUT
Output directory (default input path)
-d DPI, --dpi DPI Specify DPI (default auto)
-q QUALITY, --quality QUALITY
JPEG quality (default 85)
-f {jpeg,png}, --format {jpeg,png}
Image format: JPEG or PNG (default PNG)
-l LOGFILE, --logfile LOGFILE
log file (default none)
-a, --analyze Analyze input document
option -d or --dpi is only used for PDF conversion.
option -f or --format is only used for PDF conversion.
option -q or --quality is only used for PDF conversion.
Script currently uses Unrar.exe which is free to use but have some restriction. Check licence file for more information.