Convert GIFs to gray scale while preserving transparency
Posted: 2010-03-02T17:49:51-07:00
I've got a ton of color GIFs, most with a transparent background. I want to convert them all to gray scale.
So I do this:
Unfortunately. that clobbers the transparent background. I've done a ton of searches with "ImageMagick 'preserve transparency'" but have found little regarding GIFs and none in the context of gray scale.
I'm not overly familiar with the guts of image formats, nor am a web designer by trade. I'm just an admin who's been tasked with a bulk conversion. So forgive me if this is a simple problem. I'm hoping someone can give me the correct incantation for "convert" to accomplish what I need to do.
Thanks.
EDIT: I guess I should state that I'm using v6.5.8.10 on FreeBSD.
So I do this:
Code: Select all
convert -type grayscale foo.gif foo.gif
I'm not overly familiar with the guts of image formats, nor am a web designer by trade. I'm just an admin who's been tasked with a bulk conversion. So forgive me if this is a simple problem. I'm hoping someone can give me the correct incantation for "convert" to accomplish what I need to do.
Thanks.
EDIT: I guess I should state that I'm using v6.5.8.10 on FreeBSD.