Page 1 of 1

fill and key to targa with alpha channel

Posted: 2009-10-26T14:25:28-07:00
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!

Re: fill and key to targa with alpha channel

Posted: 2009-10-26T15:07:37-07:00
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