Comics to .cbz
Published on
Comics to .cbz
Python script to parse a manifest file to renames image file in the comics order. Create a drm-free .cbz out of the folder.
This script does not remove any drm, it only renames the png files according to the manifest.json.
Help from the script
$ python comics_to_cbz.py -h
usage: comics_to_cbz.py [-h] [--debug | --silent] --inputdir [inputdir] [--manifest [manifest]]
[--outputfile [outputfile]]
comics_to_cbz
Description:
Python script to parse a manifest file to renames image file in the comics
order. Create a drm-free .cbz out of the folder.
This script does not remove any drm, it only renames the png files according
to the manifest.json.
Example:
>>> python comics_to_cbz.py -i ../tomb_raider -o tomb_raider_omnibus_2
optional arguments:
-h, --help show this help message and exit
--debug, -d enable debugging (default: False)
--silent, -s don't log (default: False)
settings:
--inputdir [inputdir], -i [inputdir]
Input folder of the comics (default: None)
--manifest [manifest], -m [manifest]
Input manifest file of the comics. Default location is [inputdir]. (default: manifest.json)
--outputfile [outputfile], -o [outputfile]
Destination file name for the comics. (default: output_cbz)
Example
➜ python comics_to_cbz.py -i ../tomb_raider -o tomb_raider_omnibus_2
INFO[comics_to_cbz] Output will have the following name: tomb_raider_omnibus_2
INFO[comics_to_cbz] Found input directory: ../tomb_raider
INFO[comics_to_cbz] Creating final file
INFO[comics_to_cbz] Cleaning up
Have a glorious day! :)
➜