Place image under existing transparent image

Nathan Zabaldo <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <CAEqRV8wr6-5h4DD6OTV7Zy0Bj0MGxknSx9n=i_3ggtk0rZo3sg@mail.gmail.com>
I know the ImageMagick DstOver option is not available in GM.

That's fine, but if I have say 2 images, and I'm iterating through those 2
images and want the 2nd image in the iteration to be placed under the
first, how would I do that in GM?

That command in IM would look like the command below, for example.

In the IM convert command below, a canvas is created according to my full
image dimensions and make it transparent. Then I set the gravity for the
images to North. Using draw I draw the first image at zero geometry, and
then the 2nd image I would draw with "DstOver", which would place the
second image underneath the first, and the second image is bumped down 50,
which would make the 2nd image appear as a second row. Finally I would
specify the final name of the output image.

Pretty simple in IM. Hopefully someone here can help me with an equally as
simple example command in GM. Please if you will, rewrite the following
command to produce the same effect in GM. Many thanks.

convert -size 252x217 xc:transparent -gravity North
-draw "image over 0,0 0,0
'C:\wamp\www\\_img\raw\1960277508558c662b34e157.48602447.png'"
-draw "image DstOver 0,50 0,0
'C:\wamp\www\\_img\raw\209019588558c662b3fddf2.78511661.png'"
C:\wamp\www\\_img\racks\1524368692558c662b4c9020.99299040.png 2>&1

You can see an example of the resulting IM image in the attachment, to get
an idea of why it is important to me to be able to place the 2nd image in
the iteration behind the first.

I posted a link in the forums as well:
http://sourceforge.net/p/graphicsmagick/discussion/250738/thread/70c0c0c6/

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o

_______________________________________________
Graphicsmagick-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.