Home » Questions » Computers [ Ask a new question ]

ImageMagick - Replace the transparent part of a GIF with a solid colour?

ImageMagick - Replace the transparent part of a GIF with a solid colour?

I have a GIF file that has a transparent section. I want to replace that with just plain white (or some other colour), so that there is no transparent parts. Can I do this on the command line with ImaageMagick? I'm OK if the image has to change from a .gif to something else. I tried to convert it to a jpg and the tramsparent parts were black. Is there a way to customize that?

Asked by: Guest | Views: 207
Total answers/comments: 1
Guest [Entry]

"You can do this using the 'convert' binary that comes with imagemagick.

convert myimage.gif -alpha off myimage.gif

Read about setting it to a custom color here:
http://www.imagemagickdotorg/Usage/formats/#gif_trans"