What is background removal?
Background removal separates a subject from its background and makes the background transparent, using color matching, manual selection or machine-learning segmentation.
By Rocco Bombardieri · Updated
Want the full walkthrough? Read: Triim vs remove.bg, Photoroom, and Canva BG remover →
Explained in more detail
Background removal produces an image where only the subject is opaque and everything else is transparent. The result is saved in a format with an alpha channel, usually PNG or WebP, so the subject can be placed on any new background.
Three approaches are in common use. Manual selection, with a pen, lasso or magic wand in a photo editor, is precise but slow. Color keying removes pixels near a chosen color, which is fast and predictable when the background is a single flat color. Machine-learning segmentation, as used by services such as remove.bg, estimates which pixels belong to the subject, so it can handle complex backgrounds, but it usually requires uploading the image to a server.
Each trades off differently. Color keying is deterministic and can run entirely in the browser, but it only works on simple backgrounds. Segmentation copes with real-world scenes but is a model's best guess, and fine detail such as hair can come out wrong.
Quality problems show up at the edges. If the subject was photographed against white, its anti-aliased edge pixels are blends of subject and white. Remove only the pure white and a light outline remains around the cut-out; this is called fringing or a halo.
Triim's remove-background tool uses color keying with adjustable tolerance and feather, and processes images locally in the browser.