problem with -fx

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
digitalspezialist

problem with -fx

Post 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
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: problem with -fx

Post by Bonzo »

Try using " instead of '

Code: Select all

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

Re: problem with -fx

Post by digitalspezialist »

great, thank you very much!
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: problem with -fx

Post 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/
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply