Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Unrecognized color string for colorizeImage() and tintImage() #182
I just updated Imagick from 3.3.0 to 3.4.0.
This seems to break the old usage of the methods
I get an
The changelog states:
What exactly does "wrong behaviour" mean? How exactly are the methods meant to be used now (without adding the 3rd parameter..)? Do they only accept a ImagickPixel object now?
It was not passing the value into the underlying ImageMagick library correctly. It was passing in a 'PixelWand' (which is how ImageMagick stores colors), with just the opacity set, not the RGB channels.
It wasn't possible to reproduce the results of using tint image from the ImageMagick command line tools in Imagick
If you want to see the code, it's in https://github.com/mkoppanen/imagick/blob/master/imagick_class.c