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.