GIMP palettes

Yesterday I talked with a colleague of mine about the GIMP's capabilities of working with palettes. We both agreed that if one creates an indexed bitmap, its palette can only be expanded (new colors can be added), but cannot be reduced (existing colors can't be removed from the palette). I had some bitmaps to edit and stumbled upon the same problem - I needed to delete a color from an existing palette. So, after fighting with the GIMP menus for 15 minutes I found my way to victory :) .

Here it is:

I hope you really hate GIMP now, and if you don't - go see a doctor... Otherwise, if you make this excersize several times you will be able to do whatever you want with your indexed images.

There is one drawback actually, and I don't know already why it is happening - when importing back a palette, the palette is reordered and the image is reindexed to use the new colors' indices. There is no change of the image's look, but this strange effect can break your nerves if several bitmaps share a common palette. I hope to find a way to avoid this color reordering...

Posted by picmaster at 11 July 2007

Tags: gimp