Page 1 of 1

masking image

Posted: 2007-07-25T15:49:57-07:00
by webshaker
Hi

I have an jpg image (i.jpg).
I have a second png image (m.png) with only and alpha channel (created with photoshop).

I'd like to add the color channel of my jpg to my png.

I hope that
composite i.jpg m.png d.png should work but it don't.

d.png is the same as i.jpg (no alpha channel)

Could somebody help me please?
Thank's Etienne

Re: masking image

Posted: 2007-07-27T08:43:08-07:00
by el_supremo
Try this:

Code: Select all

convert i.jpg ( m.png -negate ) +matte -compose copyopacity -composite d.png
Pete