Gimp-Forum.net
Making an object a single solid colour? - 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: Making an object a single solid colour? (/Thread-Making-an-object-a-single-solid-colour)



Making an object a single solid colour? - JonnyT - 05-22-2020

I've got this image of a black sword outline on a white background. I want to remove the white background so that just the black outline of the sword is left behind. But when I do that there's a halo of white around the sword left behind from the original white background:

[Image: VN4KhHP.jpg] [Image: MwW21ol.jpg]

Is there a way to take the Sword and make every pixel in that layer black?

Or is there a better way of achieving this result?

I've been searching for ages but it's hard to find the answer to your question when you don't know the right terminology to search for.


RE: Making an object a single solid colour? - Ofnuts - 05-22-2020

See https://www.gimp-forum.net/Thread-Background-removal-or-replacement-on-text-logos-and-other-computer-graphics

Basically you remove the white background with Color-t-o-alpha or Color erase.


RE: Making an object a single solid colour? - neurolurker - 05-22-2020

Hello.  "I've been searching for ages but it's hard to find the answer to your question when you don't know the right terminology to search for."  Yes.

There are lots of possibilities for removing backgrounds, but techniques often depend on the file type - jpg, png, svg, etc. It might be helpful if you could post the original image with the background intact, since the background is already partially removed, further results will almost certainly result in jagged edges.


RE: Making an object a single solid colour? - denzjos - 05-22-2020

The problem is a little bit like : https://www.gimp-forum.net/Thread-image-was-taken-from-phone-and-unclear-help
It's not the answer how to prevent the white halo (as neurolurker said, there are different ways), but if you have to select such a simple drawing I would use the path tool and then do in the gimp menu : Select / From path and then fill the selection with black. This way, you get crisp straight lines. 

[attachment=4418]


RE: Making an object a single solid colour? - JonnyT - 05-23-2020

Thank you all so much for your help with this.

I’ve since managed to do what I wanted to do and I couldn’t have done that without your help.