How can I swap colors with GIMP?

50

9

I have made an image with three colors: RGB

I want to swap each channel to a specific color. Is there a way to do that efficiently with GIMP?

Example:

enter image description here

I would like:

  • Blue: #434343
  • Red: #EEEEEE
  • Green: #BBBBBB

user40642

Posted 2010-06-21T19:48:38.493

Reputation: 611

Answers

56

For GIMP 2.6.12, Just use Colors -> Map -> Color Exchange

jdwhitfield

Posted 2010-06-21T19:48:38.493

Reputation: 661

This solution works, but what if we want to keep gradient border ? – user2668735 – 2019-12-23T12:08:16.077

12

Try Filters -> Colors -> Map -> Color Exchange... in RGB mode.

You should be able to replace one color with another easily.

Nicolas Bazire

Posted 2010-06-21T19:48:38.493

Reputation: 311

7

To directly modify how each channel is interpreted, use Colors -> Components -> Channel Mixer.

To get what you want, you would select

  • Blue:
    • Red: 26.3
    • Green: 26.3
    • Blue: 26.3
  • Red:
    • Red: 93.3
    • Green: 93.3
    • Blue: 93.3
  • Green:
    • Red: 73.3
    • Green: 73.3
    • Blue: 73.3

sbell

Posted 2010-06-21T19:48:38.493

Reputation: 178

This solution is the only one working, by changing gradient borders as well. Sadly most of the time, we just want to choose the destination color by using the hex code. Any idea to do that ? – user2668735 – 2019-12-23T12:10:41.740