Equivalent of ImageMagick's -fx in GrahicsMagick?

Nekomune <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
Hello,

I'm wondering what the nearest equivalent of -fx is in GraphicsMagick is?

I am trying to perform a color to black and white conversion without
using the default formula when changing colorspaces.

In im, I run:

convert -colorspace Gray -fx '0.4*r+0.1*g+0.4*b' in.jpg out.jpg

But I can find no option like -fx

The closest I have found is -recolor, where I specify a full matrix to
perform color translation in the same colorspace. But in the future, I
might want to use something more general like -fx.

Any pointers?

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.