Discussion:
multiple thumbnails
Michael Howard
2010-10-27 12:10:23 UTC
Permalink
For a given image I need to generate thumbnails of several sizes.
I am currently making multiple calls to convert.

I want to confirm with the experts ...

Q: Please confirm that there is no mechanism to fork the processing
stream and generate multiple outputs from a single input file.


Thanks,
Michael
Fred Weinhaus
2010-10-27 16:43:58 UTC
Permalink
You can do that easily enough. One way is:

convert image \
\( -clone 0 -resize ... -write image1 +delete \) \
\( -clone 0 -resize ... -write image2 +delete \) \
....
-delete 0 null:


see http://www.imagemagick.org/Usage/files/#write
Post by Michael Howard
For a given image I need to generate thumbnails of several sizes.
I am currently making multiple calls to convert.
I want to confirm with the experts ...
Q: Please confirm that there is no mechanism to fork the processing
stream and generate multiple outputs from a single input file.
Loading...