Page 1 of 1

Unrecognized color `mean'

Posted: 2011-04-15T00:33:23-07:00
by Yeti
Hi,

last night we did an update of ImageMagick on FreeBSD 7.1 amd64. The IM version is now 6.6.7-10 2011-04-14 Q16.

A crucial part in our software determines the luma of a box containing text with this command:

Code: Select all

/usr/local/bin/convert -background white -fill black -font /usr/local/whatnot/fonts/tahoma.ttf -pointsize 7.09 -trim +repage -colorspace Rec709Luma -debug all -format %[fx:mean] /var/tmp/text.svg info:
This worked fine before, returning a value between 0 and 1. Now all it returns is 0 and when I enable -debug all, you'll see the reason:

Code: Select all

2011-04-15T09:30:14+02:00 0:00.758 0.125u 6.6.7 Exception convert[2044]: color.c/GetColorCompliance/948/Exception
  unrecognized color `mean'
0
Now, I can get colors like %[fx:red] and %[fx:blue], but we would have to extend our software to calculate the necessary values from thereon.
The same command still works fine on my Windows 7 machine with IM 6.6.7-7 2011-02-07 Q16.

Glad for any pointers or fixes.

Kind regards
Yeti