opacity problem with transparent png image

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
vitty

opacity problem with transparent png image

Post by vitty »

Hello,

I use the command below for set image opacity on the transparent png image.

Code: Select all

$image = new Imagick('example.png');
$image->setImageOpacity(0.7);
If I set opacity on this image, then the image has colour where was transparency in original image.

Thank you for help.

Vitty
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Re: opacity problem with transparent png image

Post by mkoppanen »

Are you using windows static build by any chance?
Mikko Koppanen
My blog: http://valokuva.org
Post Reply