Ry’s Blog

August 15, 2008

Batch Convert Images to Grayscale

Filed under: Uncategorized — Ry @ 2:48 pm

There are posts all over the Internet about how to perform bulk image conversions using Imagemagick in Linux, but you won’t find anything about how to do it in Windows.  Here is how I got it to work in Windows XP:

FOR /F “tokens=*” %G IN (’dir /b’) DO convert -fx G %G g_%G

It seems to me that operating on more that one file at a time should just be built into the convert command itself, but its possible I’ve just missed something.

Powered by WordPress