setImageOpacity

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
hsshch

setImageOpacity

Post by hsshch »

Hello,

i have a .gif (not animated) image with transparent background and i want to change the opacity of the image. but when i use the setImageOpacity function, the opacity of transparent areas change too. for example if i call the function with "0.5" the transparent areas will be white.

What can i do to change the opacity of the image and keep the transparent areas transparent?

Thank you in advance.
hsshch

Re: setImageOpacity

Post by hsshch »

I found my answer in another post. please ignore this.
badabou
Posts: 54
Joined: 2008-06-23T06:12:24-07:00

Re: setImageOpacity

Post by badabou »

Hello,

I have a same problem, have you the answer ?

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

Re: setImageOpacity

Post by mkoppanen »

Hi,

setImageOpacity is a comfortability method to change whole images opacity at once. you can probably use something like fxImage to achieve the effect.
Mikko Koppanen
My blog: http://valokuva.org
Post Reply