To remove a white halo around a cutout, tackle the fringe left when edge pixels from the original backdrop bleed into the figure. Those pixels were partially blended with the old backdrop. Place the cutout on a contrasting colour. Dark grey makes fringing obvious. The methods below clean that fringe and deliver a transparent PNG edge.
Why a Halo Appears
A white or dark halo is a byproduct of removing a backdrop. The edge pixels of the figure are semi-transparent. They hold a mix of the figure colour and the original backdrop colour. Drop the cutout onto a new setting and those mixed pixels appear as a thin outline. This is fringing. It screams when the new backdrop contrasts sharply with the old one: a dark figure on white, or a pale figure on black.
Spotting the Halo
Make the halo visible. Place your cutout on a backdrop with a different brightness than the original. For a white halo, use dark grey. For a dark halo, use light grey. The contaminated edge pixels jump out. Now you can fix them.
Fixing the Halo in Photoshop
Photoshop gives you several routes to kill a white halo: the Matting menu, contracting the selection, or the Select and Mask workspace. Each fits a different situation.
Matting Menu Commands
Layer > Matting holds three tools: Defringe, Remove Black Matte, and Remove White Matte. Defringe swaps edge-pixel colour with nearby tones from the figure. Remove White Matte kills a white halo by blending the edge inward. Remove Black Matte does the same job for a dark fringe.
- Select the layer holding the cutout.
- Go to Layer > Matting > Defringe.
- Enter a radius of a few pixels. Click OK.
If the halo is white, try Remove White Matte. If it is black, use Remove Black Matte.
Contracting the Selection
Shrink the selection by a few pixels before you delete the backdrop. This trims the contaminated edge. Use this when you have an active selection around the figure.
- Make a selection around your figure.
- Go to Select > Modify > Contract.
- Enter a few pixels. Click OK.
- Delete the backdrop or add a layer mask.
Select and Mask
Select and Mask includes a Decontaminate Colors checkbox. It replaces edge colour with nearby figure colour. Reach for this on complex edges like hair.
- With the selection active, open Select and Mask.
- Under Output Settings, check Decontaminate Colors.
- Adjust the amount if needed. Click OK.
Fixing the Halo in GIMP
In GIMP, use Colors > Color to Alpha to strip a leftover solid-colour fringe. This works when the halo is a single colour, such as white or a specific shade.
- Open the image in GIMP.
- Go to Colors > Color to Alpha.
- Click the colour picker and sample the halo colour.
- Adjust the opacity threshold and click OK.
The selected colour converts to transparency. The edge cleans up.
Preventing the Halo When Shooting
Reduce the chance of a halo by shooting against a backdrop close in brightness to your planned final setting. The edge pixels then blend less with the original scene and the fringe stays faint. If your final backdrop will be dark, shoot against a dark backdrop.
Checking Your Work
After applying any fix, test the cutout on a few different backdrops. Place it on white. Then on dark. Then on medium grey. No halo means the fix held. A thin line means repeat the defringe or contract step with a slightly larger amount.
- Use a dark grey backdrop to check for white halos.
- Use a light grey backdrop to check for dark halos.
- Zoom to a high magnification or more to inspect the edge.
Online Tools for Quick Fixes
No Photoshop or GIMP? Use a web-based tool like removebg.sh to strip the scene and download a clean transparent PNG. After processing, check the image for halos. If you spot fringing, apply the defringe or contract method in an image editor later.