problem with 'fx' operator

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
jbeale
Posts: 8
Joined: 2007-12-07T11:15:22-07:00

problem with 'fx' operator

Post by jbeale »

I'm using ImageMagick 6.3.7 11/21/07 Q16 on Win XP. It generally works as expected, but I cannot get the 'fx' operator to work. Here is my attempt to use syntax taken directly from http://www.imagemagick.org/script/fx.php

C:\G>convert image.png -channel red -fx 'u/2.0' image.jpg
convert: unable to parse expression `u'.

I assume the demo syntax was correct at one time? Has the 'fx' functionality been removed from the 16-bit version, or the syntax is different now? Thanks!
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: problem with 'fx' operator

Post by Bonzo »

With windows you need to use " not '

Code: Select all

convert image.png -channel red -fx "/2.0" image.jpg
jbeale
Posts: 8
Joined: 2007-12-07T11:15:22-07:00

Re: problem with 'fx' operator

Post by jbeale »

Ah, it is so. Thanks for the speedy reply! works now.
Post Reply