Page 1 of 1

Making transparency from overlay

Posted: 2009-11-08T19:26:26-07:00
by fauxdc
Hi, I would like to do something like this -
Image put together with Image becomes Image
(using alpha channel)
How can I achieve this using a batch file with ImageMagick?
Thanks.

Re: Making transparency from overlay

Posted: 2009-11-08T21:06:20-07:00
by anthony
See Alpha Compositing
http://www.imagemagick.org/Usage/compose/

Specifically you want DstOut that is the destination image that is 'outside' the source image.

Code: Select all

  convert http://i38.tinypic.com/2lnwyl4.png http://i33.tinypic.com/2d2av49.png \
                 -compose DstOut -composite  result.png
substitute your local copies of the input images, rather than the URL's you gave above.