Gimp-Forum.net
is possible to change several BMP file indexed colors into ONE? - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: is possible to change several BMP file indexed colors into ONE? (/Thread-is-possible-to-change-several-BMP-file-indexed-colors-into-ONE)



is possible to change several BMP file indexed colors into ONE? - ldd2 - 10-03-2023

Greetings guys.

I have several .BMP files that share the same color palette.

I'd like to change several of the indexed colors from each file to have the same

https://imgur.com/G14K0iL

So, for example, file1 has like 3 rows of indexed colors and all of them would like to be changed into one single indexed color (like pink). This could save me a lot of time changing each one of these files instead of clicking one index after another.

I'd appreciate the help if possible


RE: is possible to change several BMP file indexed colors into ONE? - rich2005 - 10-03-2023

hmmm.. you could try

Take one of the indexed images and adjust the colormap as required. Export it for use.

An open image shows in the palette dock. Make a note of where it is.

Open your images, choose one. Use Colors -> Map -> Set Color Map and choose the palette from the 'adjusted' image.

Onto the next image and use Filters -> Repeat Last (ctrl-f)

An animation of that: https://i.imgur.com/oewSbFw.mp4

If that works with your images there is a script that saves all open images. Otherwise it might be possible with ImageMagick but I need to look that up.


RE: is possible to change several BMP file indexed colors into ONE? - ldd2 - 10-03-2023

(10-03-2023, 01:44 PM)rich2005 Wrote: hmmm.. you could try

Take one of the indexed images and adjust the colormap as required. Export it for use.

An open image shows in the palette dock.  Make a note of where it is.

Open your images, choose one.  Use Colors -> Map -> Set Color Map and choose the palette from the 'adjusted' image.

Onto the next image and use Filters -> Repeat Last (ctrl-f)

An animation of that: https://i.imgur.com/oewSbFw.mp4

If that works with your images there is a script that saves all open images.  Otherwise it might be possible with ImageMagick but I need to look that up.

God bless you, buddy.

It worked very well. Definetely what I needed. Really appreciate your kind help.

Have a wonderful day.