How to save multiple file using mogrify?

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
clhsieh
Posts: 12
Joined: 2012-10-24T00:03:11-07:00
Authentication code: 67789

How to save multiple file using mogrify?

Post by clhsieh »

When I use convert, I can use

Code: Select all

convert aaa/a.tif -write bbb/b.png -write ccc/c.jpg -resize 100x100! ddd/d.jpg
And actually I want to use mogrify to apply this convert for all tif file in aaa, i.e, aaa/*.tif
The main problem is that I don't know how to use -write option in mogrify.
What I can do now is use three command to deal with this.

Code: Select all

mogrify -path bbb -format png aaa/*.tif
mogrify -path ccc -format jpg aaa/*.tif
mogrify -path ddd -resize 100x100! -format jpg aaa/*.tif
Is there any better method?
Post Reply