You removed the background, dropped the subject onto a new color, and now there is a thin pale outline around it, or the hair looks like it was cut with scissors. That outline is called a halo or fringe, and every automatic cutout can leave one. The fix takes a few minutes in a free editor such as GIMP or Photopea.
The short answer
A halo is a ring of edge pixels that still carry the old background’s color. Select the subject from its transparency, shrink the selection by one or two pixels, invert it, and delete. Then check the result on a dark and a light layer. Leave hair out of the shrink and clean it with a soft eraser or a refine-edge tool instead.
Why cutouts get halos
At the border of any photographed object, pixels are a mix of subject and background. A strand of hair against a white wall produces pixels that are part hair, part wall. A good background remover, including the background remover on this site, turns those border pixels partly transparent instead of cutting a hard line, which is what keeps hair looking natural.
The catch is that a partly transparent pixel still has the mixed color. On the original white wall you never notice. Put the cutout on a dark background and the white part of those pixels shows up as a glowing outline. The same happens in reverse with a dark original background on a light new one.
So a halo is not usually a bad mask. It is the old background’s color living inside the soft edge, and the cure is to remove or recolor that thin ring.
Step 1: Find the halo before you fix it
Halos hide against backgrounds that resemble the original. Always test on contrast:
- Open your transparent PNG in the editor.
- Add a new layer, fill it with a dark color (near black), and move it below the cutout in the Layers panel.
- Zoom to 200% and follow the outline. Light fringes show up now.
- Repeat with a white layer. Dark fringes show up on this one.
Hide or delete the test layer before you export, unless you want that background.
Fix a halo in GIMP
These steps use menu names from the GIMP 3.0 documentation.
- Open the PNG. Make sure the cutout layer is selected in the Layers panel.
- Choose Layer → Transparency → Alpha to Selection. The selection now follows the subject’s opaque area.
- Choose Select → Shrink and enter 1 pixel. Use 2 only if the halo is thick.
- Optional: Select → Feather with a value under 1 pixel softens the new edge so it does not look stamped out.
- Choose Select → Invert, then press Delete to clear the outer ring.
- Check again on the dark and light test layers, then export with File → Export As and keep the
.pngextension so transparency survives.
For hard-edged objects such as products, logos, or furniture, Layer → Transparency → Threshold Alpha is a quick alternative: it makes every pixel either fully opaque or fully transparent at the level you choose (GIMP docs). It removes soft fringes completely, but it also removes the softness, so never use it on hair or fur.
Fix a halo in Photopea
Photopea runs in the browser and uses Photoshop-style menus.
- Open the PNG. Hold Ctrl (Cmd on a Mac) and click the layer’s thumbnail to select the subject from its transparency (Photopea: make selections).
- Choose Select → Modify → Contract and enter 1 pixel (Photopea selection guide).
- Choose Select → Inverse, then press Delete.
- Choose Select → Deselect, check on a dark and a light layer, and export with File → Export as → PNG.
Hair, fur, and other soft edges
Shrinking the selection eats the finest strands, so treat soft areas separately:
- Protect the hair. Do the shrink-and-delete only along hard edges such as shoulders or clothing: after inverting, subtract the hair region from the selection before you delete.
- Erase fringes by hand. Use a soft eraser at low opacity and brush lightly along the outer tips. Several light passes look more natural than one hard stroke.
- Let a refine tool rebuild the edge. Photopea’s Select → Refine Edge has you paint the subject white, the background black, and the uncertain hair zone gray (Photopea’s color option Grey), then works out the transparency of the gray area (Photopea refine edge guide).
- Recolor instead of deleting. If strands keep a pale tint on a dark background, paint over them with the hair color on a new layer at low opacity. The tint disappears and the strands stay.
When to reshoot instead
Some photos cost more time in cleanup than a new shot takes. Reshoot when:
- the subject and background are nearly the same color, so the edge is a guess everywhere;
- the subject is strongly backlit, which bakes a bright rim into the hair itself;
- the photo is small or blurry, so the edge is only a few soft pixels wide;
- the object is glass, a veil, or smoke, where the “background” is visible through the subject.
For the retake, pick a plain background that contrasts with the subject, light it evenly, and fill the frame. The earlier guide on removing a background without uploading your photo has more tips for a photo that cuts out cleanly.
A quick checklist
- Tested on both a dark and a light background at 200%.
- Hard edges shrunk by 1 to 2 pixels; hair left out of the shrink.
- Soft fringes erased lightly or recolored, not chopped.
- Exported as PNG so the transparency is kept.
If you are curious what happens to the image before it reaches your editor, how Backgrounds Remover works walks through each step on your device. When the next photo is ready, remove its background in your browser and run this checklist on the result.