fill and key to targa with alpha channel

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
t11s

fill and key to targa with alpha channel

Post by t11s »

How can I user ImageMagick to take two images (a color "fill" image and a greyscale "key" image) and create a single targa image file output with alpha channel data from the "key" image?

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

Re: fill and key to targa with alpha channel

Post by fmw42 »

t11s wrote:How can I user ImageMagick to take two images (a color "fill" image and a greyscale "key" image) and create a single targa image file output with alpha channel data from the "key" image?

Thanks!
convert fillimage keyimage -compose copy_opacity -composite result.tga

see http://www.imagemagick.org/Usage/compose/#copyopacity
Post Reply