convert format of multiple images in a single command?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
timlee

convert format of multiple images in a single command?

Post 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!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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
Post Reply