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

2 comments:

Unknown said...

Thank you! Very important tips!

Unknown said...
This comment has been removed by the author.