User:Inductiveload/Scripts/Universal batch image to DJVU converter/Windows

This script will take either a directory of images or a list of image files and collate them in order into a DJVU file. This script needs Imagemagick, and you have to specify the Imagemagick and DjvuLibre paths inside the script to match your system. The script can handle JPG, PNG, TIFF, GIF, and any other file that Imagemagick can convert to PPM.

python djvuify.py -i "C:\dir" -o "C:\dir\out.djvu"
 * To convert a directory of images in alphabetical order (all filetypes)

python djvuify.py -i "C:\dir" -b -o "C:\dir\out.djvu"
 * To convert a directory of images as bitonal:

python djvuify.py -i "C:\dir" -e .jpg -o "C:\dir\out.djvu"
 * To convert a directory of images in alphabetical order (jpgs only)

python djvuify.py -i "C:\dir\list.txt" -l -o "C:\dir\out.djvu"
 * To convert a list of images in a text file

python djvuify.py -i "C:\dir" -r -o "C:\dir\out.djvu"
 * To convert a directory of images numbered sequentially by Windows ("a (0).jpg", "a (1).jpg"..."a (10).jpg"...)

Add the "-d" flag
 * Debugging messages

python djvuify.py -i "C:\dir" -q 48 -o "C:\dir\out.djvu"
 * Set DJVU quality for anthing but TIFF and bitonal, use "-q" parameter (you can go up to 48, the highest quality):