Saturday 9 October 2010

Usefull windows batch script to convert all files in directory using ImageMagic

This little snippet desaturates, resizes to half and converts to png all files in given directory using ImageMagic.
F:\Canon\Textbook>for %file in (.\*) do convert %file -resize 50% -modulate 100,0 %file.png
Make sure that path to ImageMagic binaries is in your PATH environment variable.