Windows batch used to convert cbr or cbz file into pdf, with support for converting webp images.

Get ./CbxToPdf.bat and config.ini files.
CbxToPdf use 7-Zip to unpack archives cbx files. It also use ImageMagick to convert webp images in another format and finally generate PDF with converted images. To install this binary dependencies, you can use a package manager for Windows, like chocolatey.
> choco install 7zip imagemagick
config.ini file accordingly.; ./config.ini
[BinaryDependencies]
ZIP_BIN="C:\Program Files\7-Zip\7z.exe"
IMAGE_MAGICK_BIN="C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\magick.exe"
IMAGE_MAGICK_ARGUMENTS=-format png
> CbxToPdf --help
Notes, if the given file have a blank space into this path, you need to put double quotes. The generated PDF is saved by default into ./output folder.
> CbxToPdf "./samples/file 1.cbr"
; Result
╔═════════════════════╗
║ 1. Initialization ║
╚═════════════════════╝
Ok, one cbx file was found to be converted.
╔════════════════════════╗
║ 2. Convert cbx files ║
╚════════════════════════╝
Launch conversion of the file: file 1.cbr
Ok, the file file 1.pdf was saved into D:\6i\CbxToPdf\output\
Job is done !
You can give multiple relative path. The program search into these folders all cbr and cbz files. And you can filter the cbx file type by using the expression *.cbz into the path.
> CbxToPdf "./folder 1" "./folder 2" "../../folder 3/*.cbz"
Only errors are printed in console output.
> CbxToPdf --quiet "./samples"
Only errors are printed in console output.
# Normal output
> CbxToPdf -v "./samples"
# Info output
> CbxToPdf -vv "./samples"
# Debug output
> CbxToPdf -vvv "./samples"
To generate PDF into another folder.
> CbxToPdf --output "../another-output-folder" "./samples"
Just open the config.ini file, and change parameters into IMAGE_MAGICK_ARGUMENTS. By default, it equals to IMAGE_MAGICK_ARGUMENTS=-format png and the process convert all images in png without change native resolution. For example if you want to use png format and resize all images just change to :
; ./config.ini
IMAGE_MAGICK_ARGUMENTS=-resize 1200x1850 -format png
CbxToPdf is free and available as open source under the terms of the MIT License, but if you want to support me, you can buy me a coffee here !
Bug reports, reports a typo in documentation, comments, pull-request & Github stars are always welcome !
Release under MIT License. Copyright (c) 2023 by 2o1oo vb20100bv@gmail.com