Page 1 of 1

problem with -fx

Posted: 2009-09-21T05:55:29-07:00
by digitalspezialist
Hi all!
I'm quite new to ImageMagick. I try to remove tints from some pictures, using the fx-operator. Unfortuantely, the code given in the color-modification-exampled gives the following error message:

Code: Select all

> convert test.png  -size 1x1 xc:Yellow  -fx 'u*v.p{0,0}'    fx_linear_white.png
> convert: unable to parse expression `u' @ fx.c/FxGetSymbol/2515.
'u' should be test.png, which exists in my working directory, or am i mistaken?

This example works fine:

Code: Select all

convert  test.png  +level-colors green,gold   levelc_grn-gold.png
I use Windows Vista's console and ImageMagick-6.5.6-2-Q16-windows-static.exe.

Can you give me any hints of what I may be doing wrong?

Thanks from Germany,
Markus

Re: problem with -fx

Posted: 2009-09-21T05:57:50-07:00
by Bonzo
Try using " instead of '

Code: Select all

-fx "u*v.p{0,0}"

Re: problem with -fx

Posted: 2009-09-21T06:33:30-07:00
by digitalspezialist
great, thank you very much!

Re: problem with -fx

Posted: 2009-09-21T16:32:19-07:00
by anthony
See IM examples section on the Windows API for the rules about using IM in dos and dos scripts.

http://www.imagemagick.org/Usage/windows/