Gradients (newPseudoImage)

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
root66

Gradients (newPseudoImage)

Post by root66 »

Hi,

i want to create a gradient using RGBA (alpha) values. This works fine on my windows machine (Imagick: 2.2.1-dev and ImageMagick 6.4.1 05/16/08 Q8 http://www.imagemagick.org)

$gradient->newPseudoImage(100, 100, "gradient:#ffffff88-#ffffffff);

But not on the webserver (Imagick: 2.2.1 and ImageMagick 6.2.8 04/17/08 Q16 file:/usr/share/ImageMagick-6.2.8/doc/index.html)

I think it's because of the Q16 (16 bit colors) version. How do I use RGBA values and Q16?

Best regards,
root66
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Re: Gradients (newPseudoImage)

Post by mkoppanen »

What is the result you get?
Mikko Koppanen
My blog: http://valokuva.org
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Gradients (newPseudoImage)

Post by anthony »

As per IM Examples, Gradients with Transparency
http://www.imagemagick.org/Usage/canvas ... ransparent
graident was expanded to allow the use of transparent colors in IM v6.2.9-8

As such you Imagick is using a version of IM that is just a little too old!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply