Page 1 of 1

How to do composite and Inverse transparency in php?

Posted: 2015-05-28T02:28:57-07:00
by kocoten1992
Hi everyone,

This question already been answer but I wanna take this a little further. viewtopic.php?f=1&t=27712

I want to do these thing in PHP Imagemagick but have no idea.

Got 3 image below, layer1.png, layer2.png and result.png repsectively.

How could I produce the result (it is layer2 over layer1, but I got stuck at the end, when cutting the transparency).

Important note: the layer 1 could be white as well, the grey is transparency.

Image

Image

Image


Thank in advance, any advise will be appreciate

Re: How to do composite and Inverse transparency in php?

Posted: 2015-05-28T09:35:18-07:00
by fmw42
see my command line or PHP exec() reply/solution at viewtopic.php?f=1&t=27712

Some one who knows Imagick may want to convert that into Imagick code