Is this what you want to do ?
http://redux.imagemagick.org/discourse- ... =1&t=10360
Make multiple versions of image using a single command?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Make multiple versions of image using a single command?
Try the following, they seem to work for me.
convert \( lena.jpg -resize 100x100! -write lena100.jpg \) \
-clone 0 -delete 0--2 -resize 50x50! lena50.jpg
convert \( lena.jpg -write mpr:lena -delete 0 \) \
\( mpr:lena -resize 100x100! -write lena100.jpg +delete \) \
mpr:lena -resize 50x50! lena50.jpg
see
http://www.imagemagick.org/Usage/files/#write
http://www.imagemagick.org/Usage/files/#mpr
http://www.imagemagick.org/Usage/basics/#clone
http://www.imagemagick.org/Usage/basics/#delete
convert \( lena.jpg -resize 100x100! -write lena100.jpg \) \
-clone 0 -delete 0--2 -resize 50x50! lena50.jpg
convert \( lena.jpg -write mpr:lena -delete 0 \) \
\( mpr:lena -resize 100x100! -write lena100.jpg +delete \) \
mpr:lena -resize 50x50! lena50.jpg
see
http://www.imagemagick.org/Usage/files/#write
http://www.imagemagick.org/Usage/files/#mpr
http://www.imagemagick.org/Usage/basics/#clone
http://www.imagemagick.org/Usage/basics/#delete
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Make multiple versions of image using a single command?
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/