I tried to convert the black and white colors of the first picture into the second one but I get artifacts as you can see around the edges. How can I remove those artifacts using Gimp?

enter image description here

enter image description here


Open the original image in GIMP, and select the transparent pixel lock in the layers panel. You need to do this or you will mess up the antialiasing, and the edges will look jagged.

Select the Bucket Fill tool, and in the tool options, set the threshold slider about half way. Then fill the image with the colours you want. Note the image is in Greyscale mode, so if you want to add colours, you'll need to convert to RGB first (Image > Mode > RGB).

In this screenshot I have circled the transparent pixel lock and Bucket Fill tool threshold settings in red.

Screenshot of image edited in GIMP


A slightly left-field answer to your question, but I would simply redraw the image as a vector. It's only three circles.

It would take less than a minute, and be absolutely spot on. You could easily adjust colours etc going forwards, and use it as an SVG icon, and a variety of other vector-tastic bonuses :)

  • Redrawing surely would be the high quality way. Unfortunately we have no idea, is the shown, easy to draw image just the same that the questioner wants to modify properly. The real one might be much more complex and not at all easy to draw, but anyway with the same problem at the borders. – user287001 May 3 '17 at 19:06

Invert your greyshades by using the curves tool. No need at all to get in to troubles with creating proper selections and antialiasing.

enter image description here

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.