batch compose

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Posts: 38
Joined: 2010-12-14T03:56:10-07:00
Authentication code: 8675308

batch compose

Post by ratneshsoni »

i want to composite image in batch. Like i am designing the tshirt and when i complete the designing want to make a single image on tshirt. In this case i have more than 1 image it is not fixed. currently i am waiting for this

User avatar
Posts: 26383
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: batch compose

Post by fmw42 »

composite and convert ... -compose ... -composite only work with two images at a time. If you have multiple pairs of image that you need to composite into separate resulting images, then you will likely need to write a script to loop over the pairs of images and composite them.

If you are trying to composite many images into one final image, then you can do that with

convert -background somecolor image1 image2 image2 image2 -flatten resultimage