[Request] Color map BATCH feature for Indexed images for GIMP
Hello, I work a lot with Indexed images for sprites and even though I tried to make a python script, it doesn't do what I want. What I'm trying to do is, after I convert an image to 256 color with Floydd Steingberg dithering with another tool like irfanview (it is better quality of image than setting color to index in GIMP), then I need to make the predominant color first color in the color map.
This is a tool that has to be done image by image which is too slow and the color map here is kind of reversed, as you can see the mask color is at bottom right corner. The same image opened in GIMP would show the Magenta on the top left corner as first color in the color map. So no problem, it has to be first color (Index 0) as seen in GIMP.
My script swapped the Index 0 color with Index #wherever Magenta is placed# but then when I open the image, colors are swapped thus all black is magenta, background becomes black... Then I realize - NO I need color order change, not swap colors!
so your option: REARRANGE COLOR MAP is what I need - you drag Magenta from the middle of the color map to be your first color. Nothing changed on image, only the color order. GREAT! Now can this be done as BATCH?
You have a bunch of PNG's opened. You cant open them as layers, as the color map is same, so you have separate tab. You perform (find Index# where Magenta is and REARRANGE COLOR to be first color), for all PNG's. The export as PNG all, so you don;t click each PNG file 1 by 1. Python script or feature would be great.