How to save multiple file using mogrify?
Posted: 2013-01-29T03:03:14-07:00
When I use convert, I can use
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.
Is there any better method?
Code: Select all
convert aaa/a.tif -write bbb/b.png -write ccc/c.jpg -resize 100x100! ddd/d.jpg
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