Hexidecimal error found on color #8A8A8D

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
bansawbanchee
Posts: 4
Joined: 2015-08-18T11:41:31-07:00
Authentication code: 1151

Hexidecimal error found on color #8A8A8D

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Hexidecimal error found on color #8A8A8D

Post 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.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Hexidecimal error found on color #8A8A8D

Post 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?
bansawbanchee
Posts: 4
Joined: 2015-08-18T11:41:31-07:00
Authentication code: 1151

Re: Hexidecimal error found on color #8A8A8D

Post 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.
bansawbanchee
Posts: 4
Joined: 2015-08-18T11:41:31-07:00
Authentication code: 1151

Re: Hexidecimal error found on color #8A8A8D

Post 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
bansawbanchee
Posts: 4
Joined: 2015-08-18T11:41:31-07:00
Authentication code: 1151

Re: Hexidecimal error found on color #8A8A8D

Post by bansawbanchee »

That is exactly what it was..sorry for that.
Post Reply