

Set max resolution of image (long side) in pixel (downscaling only), must be in range 1-10000 (default: 1000). Set pixel density in pixels per inch (dpi), must be in range 1-1000 (default: 72). Set path where images are located (default: Folder where this script is located).

Usage: main.py -v Image conversion properties Path options: -h, -help show this help message and exit -v, -version show program's version number and exit commands: Image conversion properties -p PATH, -path PATH path where images are located (default: ".") -d, -dpi pixel density in pixels per inch (dpi), must be in range 1-1000 (default: 72) -s, -size max resolution of image (long side) in pixel (downscaling only), must be in range 1-10000 (default: 1000) -f, -filter type of filter used for downscaling, must be an integer in range 0-5 (default: 0 = Nearest) -colorspace, -no-colorspace, -cs, -no-cs convert all images to RGB color space (default: False) -q, -quality quality of output images, must be in range 1-100 (values above 95 should be avoided) (default: 80) -optimize, -no-optimize attempt to compress the palette by eliminating unused colors (default: True) other options: Customize script behaviour (alert and wait) -alert, -no-alert play alert sound when finished the conversion (default: True) -wait, -no-wait wait user keypress (Enter) when finished the conversion (default: True) Help 🆘 Filetype: jpg, jpeg, png, tif, tiff, bmp, psd, psb.
#Batch image converter virus portable#
Portable version can be built with the Windows script and Linux script, or downloaded directly from the Release page (with checksums). Note: append the following string before calling main.py script based on your operating system. Double click main.py to start it with default parameters or launch via terminal with python main.py.
#Batch image converter virus install#


The following formats are recognised: jpg, jpeg, png, tif, tiff, bmp, psd, psb. It also prints out a list of all corrupted images and any other files found. There is the possibility to convert all images to the RGB colour space (Important: ICC colour profiles are not used for this conversion so switching between different formats may result in incorrect colours). Simple script written in Python that converts all images found within the folder where the script is located (and all sub-folders) if the images are not in png or jpg (and jpeg) type, then it converts them to the latter one.Īmong the options there is the possibility of setting the quality, the maximum resolution in pixels of the long side of the image while maintaining the aspect ratio (without upscaling if smaller) and changing the dpi.
