Making transparency from overlay

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
fauxdc

Making transparency from overlay

Post 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.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Making transparency from overlay

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply