Combine composite

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
carlosaviles
Posts: 2
Joined: 2016-06-21T03:24:06-07:00
Authentication code: 1151

Combine composite

Post by carlosaviles »

Hi,

is there a way to combine these commands

convert background.png image_A -geometry +665+215 -composite background.png
convert background.png image_B -geometry +5+67 -composite background.png
convert background.png image_C -geometry +7+15 -composite background.png
convert background.png image_D -geometry +55+101 -composite background.png

into one single convert? I can't seem to find the proper way to layout the parameters when trying.

Best,
Carlos.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Combine composite

Post by snibgo »

Always please say what version of IM you are using, on what platform.

The output of each is the first input to the next, and you are not using settings that need re-setting, so this should work:

convert background.png image_A -geometry +665+215 -composite image_B -geometry +5+67 -composite image_C -geometry +7+15 -composite image_D -geometry +55+101 -composite background.png
snibgo's IM pages: im.snibgo.com
carlosaviles
Posts: 2
Joined: 2016-06-21T03:24:06-07:00
Authentication code: 1151

Re: Combine composite

Post by carlosaviles »

Great, thanks! That did the job. Sorry for not posting the version. Here it is:

Version: ImageMagick 6.9.3-6 Q16 x86_64 2016-02-28
Post Reply