Make multiple versions of image using a single command?

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
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Make multiple versions of image using a single command?

Post by Bonzo »

User avatar
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?

Post by fmw42 »

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
User avatar
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?

Post by anthony »

Or more specifically
Write an image multiple times....
http://imagemagick.org/Usage/files/#write
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply