What is fringing (halo) in a cut-out image?

Fringing, or a halo, is a thin light or dark outline left around a cut-out subject, caused by edge pixels that still carry color from the removed background.

By · Updated

Want the full walkthrough? Read: Triim vs remove.bg, Photoroom, and Canva BG remover →

Explained in more detail

When a subject is cut out of its background, the pixels along its edge are usually blends of the subject and the old background. This comes from anti-aliasing at capture or render time. A dark object photographed on white has a ring of light-gray pixels around it. Remove the white and keep that ring, and the cut-out shows a pale outline, especially when placed on a dark page.

The effect is called fringing or a halo, and it is the most common visible flaw in color-key background removal. It looks fine on white, which hides it, and wrong on any other color.

There are several ways to reduce it. Increasing the tolerance removes more of the near-background colors, at the cost of eating into the subject. A feather gives the cut a soft alpha transition instead of a hard edge. Choking or shrinking the selection by a pixel removes the contaminated ring. Dedicated tools use "defringe" or "decontaminate colors" operations that replace the edge color with a color sampled from deeper inside the subject.

Straight versus premultiplied alpha can also cause halos. If a renderer blends transparent pixels carrying a hidden black or white color value with colored neighbours, it creates a dark or light edge even when the cut was perfect.

The best prevention is a clean source: shoot against a background that contrasts strongly with the subject's edge color, and avoid backgrounds similar to the subject.

Related terms

Try it in Triim

Further reading

Part of the Triim image terms glossary, by Rocco Bombardieri.