Mobile app version of vmapp.org
Login or Join
Kimberly620

: Use specific color map index as transparent in a .gif file Is there a way of setting the color to be used as transparent in a .gif file to a specific index in the color map? I have tried

@Kimberly620

Posted in: #ColorIndexing #Gif #SoftwareRecommendation #Transparency

Is there a way of setting the color to be used as transparent in a .gif file to a specific index in the color map?

I have tried ImageMagick. For example, if I want to make all red in the image to use the color of index 10 which is blue:

convert in.gif -transparent-color blue -transparent red out.gif


This works fine if we don't worry about the indexes. The red in the picture is now transparent blue. But IM adds this transparent blue to the color table after the last used index. In my case I need the transparency to be a color map index of my choice. GIMP can rearrange the color map, which seems like something that might work, but I will still have to investigate this since it haven't really been working out.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Kimberly620

1 Comments

Sorted by latest first Latest Oldest Best

 

@Miguel516

IrfanView solved the problem. When saving a .gif file in IrfanView you can choose which color in the image should be transparent, and the exact color map index of the chosen color will be used as transparent.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme