Page 1 of 1

composite multiple images

Posted: 2013-04-07T02:20:41-07:00
by agriz
I want to composite few images on one source images.
Before attaching those images, i need to resize them.

Can i do those in single convert? Please give me example code

Re-sizing images one by one by using multiple convert.
Composite images one by one in source image using multiple convert

And

Doing all these in one convert. Which is best in performance? ( considering server's resource usage too )

Re: composite multiple images

Posted: 2013-04-07T03:54:41-07:00
by Bonzo
You do not say how you are using the code but you should be able to modify this to your needs:

Code: Select all

convert image_1.jpg ( image_2.jpg -resize 100x100 ) -geometry +100+100 -composite  ( image_3.jpg -resize 200x200 ) -geometry +500+500 -composite output.jpg

Re: composite multiple images

Posted: 2013-04-07T18:39:20-07:00
by anthony
There are about 3 ways of doing multi-image composition with re-sizing.
These are the main topic of ...

IM Examples, Multi-Image Layers
http://www.imagemagick.org/Usage/layers/#composite