Page 1 of 1

Gradients (newPseudoImage)

Posted: 2009-06-30T13:23:50-07:00
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

Re: Gradients (newPseudoImage)

Posted: 2009-07-02T15:38:19-07:00
by mkoppanen
What is the result you get?

Re: Gradients (newPseudoImage)

Posted: 2009-08-06T18:45:22-07:00
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!