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!
convert format of multiple images in a single command?
- 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?
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
http://www.imagemagick.org/Usage/basics/#mogrify