Page 1 of 1

Hexidecimal error found on color #8A8A8D

Posted: 2015-08-18T11:51:27-07:00
by bansawbanchee
I am running the newest Imagick version and am receiving this error:

( ! ) Fatal error: Uncaught exception 'ImagickPixelException' with message 'unrecognized color `8A8A8D' @ warning/color.c/GetColorCompliance/1046' in /XXXXXXXXXXXX/digicamo.php on line 38
( ! ) ImagickPixelException: unrecognized color `8A8A8D' @ warning/color.c/GetColorCompliance/1046 in /XXXXXXXXX/digicamo.php on line 38

This is the only hexadecimal I have found Imagick to break on. I do mass color changes on tons of images and it never broke on a color before.

The color is a real color though: http://www.colorhexa.com/8a8a8d

Re: Hexidecimal error found on color #8A8A8D

Posted: 2015-08-18T11:56:45-07:00
by snibgo
IM sometimes misreports the location of the error. It might be somewhere else. Please post the exact command used.

EDIT: Did you have a hash # in front of 8A8A8D? If not, then that's the problem.

Re: Hexidecimal error found on color #8A8A8D

Posted: 2015-08-18T11:57:52-07:00
by fmw42
What was your exact command and platform? Did you append the # to the hex value? If on unix, did you enclose it in single or double quotes?

Re: Hexidecimal error found on color #8A8A8D

Posted: 2015-08-18T12:00:46-07:00
by bansawbanchee
Exact command:

$im->opaquePaintImage(new ImagickPixel("#72CFEB"), new ImagickPixel("$color1"), 10000, false, Imagick::CHANNEL_ALL);
$im->opaquePaintImage(new ImagickPixel("#EE4C9B"), new ImagickPixel("$color2"), 10000, false, Imagick::CHANNEL_ALL);

Keep in mind that I use Imagick religiously for product generation for our ecommerce site. Yes, the hexadecimal is pulled from a database and the "#" is pulled with the hexadecimal value.

Re: Hexidecimal error found on color #8A8A8D

Posted: 2015-08-18T12:03:22-07:00
by bansawbanchee
You know what... After looking a bit more closely I bet the hexadecimal is missing in the database for this color... Human error on insertion of the hex value.

Sorry and Thanks for the quick support!
-Nick

Re: Hexidecimal error found on color #8A8A8D

Posted: 2015-08-18T12:05:58-07:00
by bansawbanchee
That is exactly what it was..sorry for that.