Friday, 26 November 2010

How to make grayscale png images with GraphicsMagick

If you have a color PNG image with transparency don't do this:
gm mogrify -type grayscale image.png
as it will lose the alpha channel.

You can get a similar result by just desaturating it:
gm mogrify -modulate 100,0 image.png


Leonardo Rizzo said...

Thank you! Very important tips!

Leonardo Rizzo said...
This comment has been removed by the author.