56

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

3 Answers 3

62

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

1
  • 2
    This solution works, but what if we want to keep gradient border ? Dec 23, 2019 at 12:08
13

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

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

2
  • Seems so promising but doesn't seem to work if the color you're swapping out is transparent (alpha = 0).
    – Phil
    Mar 2, 2020 at 5:16
  • What if we want to preserve a gradient? I have white text on a colored background and I would like to replace it with colored text on a white background. Jul 26, 2020 at 19:44
9

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
1
  • 1
    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 ? Dec 23, 2019 at 12:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.