Page 1 of 1

convert format of multiple images in a single command?

Posted: 2009-09-22T18:23:40-07:00
by timlee
Hi,

I have many png image files under a directory. How can I convert them all to eps format in a single command line in bash? BTW I know how to do this for a single image file. But for several images files, is there something like convert ./*.png ./*.eps"? I know this is incorrect.

Thanks and regards!

Re: convert format of multiple images in a single command?

Posted: 2009-09-22T18:41:39-07:00
by fmw42
see mogrify rather than convert. it allows you to convert a whole directory of images (and you can select which type to convert, such as jpg, png, etc or all); otherwise you need to specify all input images in the command line if the processing is simple (but may exceed the number of characters allowed if many) or write a script to loop over all your input images and do them one at a time.

http://www.imagemagick.org/Usage/basics/#mogrify