0
Query

I have a portrait photograph of myself:

enter image description here

...which I would like to remove the background of, because it's yellowed, and I would like it be closer to #ffffff.

Yes, I've converted the linked version from .NEF to sRGB incorrectly. Blame GIMP, presumably for suggesting relative colorimetric. The aforedepicted pasted image is accurate.

Attempts
  1. I've managed to create a version using Cavna that uses LLM-based AI to modify the background. However, as is expected, it does the job poorly:

    example

    I'd like to be able to accomplish this myself.

  2. GIMP's "Colour" tools don't help much. They tend to modify one aspect in expense of the others, even the more versatile tools, like "Levels".

(Lack of) Duplicates
  1. The answers to GIMP - how to remove a stain by subtracting a colour difference appear as if they might be useful, but I don't know.

  2. I'm surprised that this doesn't appear to have been asked before.

    However, I wouldn't have asked here either had I not noticed that Erase color from image in GIMP and GIMP - how to remove a stain by subtracting a colour difference existed too - this forum's name provides to me the erroneous impression that it's primarily about vector graphic creation, not bitmap manipulation. Perhaps that's due to my lack of knowledge on the subject.

0

1 Answer 1

2

I wouldn't recommend any of the colour select tools in GIMP for this. Also, there is already a tool specifically made for tasks like this.

You can use GIMP's Foreground Select tool enter image description here to make a selection, then add it as a layer mask. Finally, add a new background layer and fill it white.

If you need instructions on how to use the Foreground Select tool, I wrote an answer here which goes into much more detail. I suggest you read this first as using the tool is not obvious. Also it's semi-automatic, so it still requires user input. Additionally, it's often necessary to edit the mask manually to refine or perfect it.

Anyway, here's an example of a mask I made with the Foreground Select tool. Here I'm toggling the mask on and off so you can see it.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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