Dithering with Symbols not working

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
seebs
Posts: 2
Joined: 2013-06-18T09:32:02-07:00
Authentication code: 6789

Dithering with Symbols not working

Post by seebs »

Hello,
I am attempting to reproduce the "Dithering with Symbols" example here:
http://www.imagemagick.org/Usage/quantize/#diy_symbols
However I receive the error:
"unable to parse expression 'u[floor(15.9999*u)+1]' @error/fx.c/FxGetSymbol/1842."

Is anyone else able to reproduce this error? Any clues how to fix or is this a bug?

ImageMagick 6.8.6-0 2013-05-15
Windows 7 64-bit
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Dithering with Symbols not working

Post by snibgo »

The script as given is for Unix. For Windows, you'll need certain changes. In this case, probably use double quotes (") instead of single quotes ('). See http://www.imagemagick.org/Usage/windows/
snibgo's IM pages: im.snibgo.com
seebs
Posts: 2
Joined: 2013-06-18T09:32:02-07:00
Authentication code: 6789

Re: Dithering with Symbols not working

Post by seebs »

Ah, yes that was the issue.
Replacing them with double-quotes solves the problem. Thank you for your assistance.
Post Reply