In following image:

enter image description here

I want to make the lines inside the colorful polygons disappear, but leave the line between colorful polygons. For example, inside the green polygon at the right, there are two horizontal yellow lines which I want to remove and make them green like the polygon itself. But I want to leave the lines surrounding the green polygon intact.

I tried to use "eraser", but this changes the yellow lines to transparent lines rather than to green lines.

I tried to use "smudge", but this blends the yellow with the green and creates a dirty-looking image.

What can I do?

  • That's fine, but how accurate do you need to be? For instance, in the green and cyan square there is a dark blue line. Do you give preference to the cyan or the green, or use a mid line?
    – Paul
    Commented Apr 20, 2016 at 8:26
  • Between different colors, I do not care about the lines. All I want is that, inside each color, there will be no visible lines. Commented Apr 20, 2016 at 8:28
  • The easiest way would be to create a new transparent layer, then just paint over the lines using a hard brush and set the color via the eyedropper.
    – PieBie
    Commented Apr 20, 2016 at 8:34
  • Is the area you have to do this on just what we can see here, or a much larger image, or many more of them? For the part we can see, this would be a 15 minutes tops job with a hard brush in any suitable application. Commented Apr 29, 2016 at 9:11

2 Answers 2


Select the lines individually with the magic wand tool and fill will choice color to remove line and replace with the fill.

This type of drawing is best created and edited in Adobe illustrator-- you could probably re-create very quickly by importing your image as a jpg or pdf as a template and tracing shapes with tool set. Adobe illustrator is resolution independent and can scale to any size without degradation.

  • 1
    Or inckscape which is more probable for somebody using gimp.
    – joojaa
    Commented Apr 20, 2016 at 15:40
  • 1
    In the question is required to erase the yellow lines inside the green area. Using the magic wand tool will select the borders (which are connected) too. In my opinion your answer should be revised a little, e.g. suggesting to use the rectangular selection to limit the action of the magic wand or using a support layer as PieBie suggest, or... Commented Apr 20, 2016 at 16:18

Use a hard brush of appropriate size, pick the color from the corresponding adjacent area, and paint the lines away.

Zoom in at the ends for pixel-perfectness.

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.