Page 1 of 1

How to save multiple file using mogrify?

Posted: 2013-01-29T10:03:14+00:00
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?