Iterates manga folders and images to resize them if larger than a particular target device.
Will also convert non-JPG files to JPG.
upscale_manga.py- Download your waifu2x client of choice to /waifu2x
- Rename the exe to
waifu2x.exe - Rename the model name in
upscale_manga.pyto match the one bundled with your exe
Compares two folders and reports the volume/chapter differences between them.
Runs ../compress/compress_folders, then rename_items.
Runs ../compress/compress_subfolders, then rename_items.
Copies ComicInfo.xml / cover.jpg / desktop.ini / icon.ico and the hidden marker files between matching folders.
Crops uniform-colored borders from manga page images.
Crops a tall webtoon strip image into separate manga-sized pages.
Deletes images that are near-duplicates of each other, based on perceptual hashing.
Downloads manga chapter images from a URL pattern.
Searches MyAnimeList and generates a ComicInfo.xml + cover.jpg for each manga folder.
Merges chapter folders into their corresponding volume folders.
Prefixes chapter files/folders with their volume number.
Renames chapter/volume items to a normalized name format.
Resizes manga page images if larger than a particular target device, converting non-JPG files to JPG.
Shifts the black/white levels of monochrome manga page images.
Upscales manga page images using a waifu2x client.
Validates that chapter numbers are sequential and continuous within a folder.
Each runs a sequence of individual scripts:
Runs merge_volumes > crop_borders > compress_folders (ZIP) > rename_items > ../rename/rename_zip_to_cbz.
Runs extract_archives > prefix_volumes > merge_volumes > compress_folders (ZIP) > rename_items > ../rename/rename_zip_to_cbz.
Runs crop_webtoon > compress_folders (ZIP) > rename_items.
Runs extract_archives > resize_manga > compress_folders (ZIP) > rename_items > ../rename/rename_zip_to_cbz.
Runs extract_archives > crop_webtoon > compress_folders (ZIP) > rename_items.