Imagick colorizeImage Hex darker
Posted: 2011-11-19T15:52:29-07:00
Hi all,
I use PHP and Imagick to change the color of a transparent PNG. The image in the PNG is a simple shape with a transparent background.
I use the colorizeImage function to change the color.
The problem is that Imagick show a dark version of my HEX code (#99ccff)?
Is there a way to get the exact color (#99ccff)?
(my PNG is PNG 32 - and the shape is black)
here is my file: http://www.2shared.com/photo/N3rGdoHG/shape3.html
If you have a better way to change the color of a png file with a one color shape, please post it.
Thank you for all your help!
I use PHP and Imagick to change the color of a transparent PNG. The image in the PNG is a simple shape with a transparent background.
I use the colorizeImage function to change the color.
Code: Select all
$img = new Imagick("shape.png");
$img->colorizeImage("#99ccff", 1);
Is there a way to get the exact color (#99ccff)?
(my PNG is PNG 32 - and the shape is black)
here is my file: http://www.2shared.com/photo/N3rGdoHG/shape3.html
If you have a better way to change the color of a png file with a one color shape, please post it.
Thank you for all your help!