Unrecognized color `mean'

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
Yeti
Posts: 1
Joined: 2011-04-14T08:12:24-07:00
Authentication code: 8675308

Unrecognized color `mean'

Post 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
Post Reply