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
Hexidecimal error found on color #8A8A8D
-
- Posts: 4
- Joined: 2015-08-18T11:41:31-07:00
- Authentication code: 1151
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Hexidecimal error found on color #8A8A8D
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.
EDIT: Did you have a hash # in front of 8A8A8D? If not, then that's the problem.
snibgo's IM pages: im.snibgo.com
- 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
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?
-
- Posts: 4
- Joined: 2015-08-18T11:41:31-07:00
- Authentication code: 1151
Re: Hexidecimal error found on color #8A8A8D
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.
$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.
-
- Posts: 4
- Joined: 2015-08-18T11:41:31-07:00
- Authentication code: 1151
Re: Hexidecimal error found on color #8A8A8D
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
Sorry and Thanks for the quick support!
-Nick
-
- Posts: 4
- Joined: 2015-08-18T11:41:31-07:00
- Authentication code: 1151
Re: Hexidecimal error found on color #8A8A8D
That is exactly what it was..sorry for that.