Most cutouts fail at the hair. Understanding *why* tells you both how to fix it and, more usefully, how to avoid the problem when shooting.
The Real Problem: Partial Pixels
A single strand of hair is thinner than a pixel. That pixel therefore contains a mixture — say 40% hair color and 60% background color. A binary decision (keep or delete) can only give you two bad options:
- Keep it: you retain background-colored pixels, which appear as a halo or fringe.
- Delete it: the strand disappears, leaving a hard, wig-like outline.
The correct answer is neither: those pixels need partial alpha — 40% opaque — so they blend with whatever new background you place behind them. Tools that support edge feathering or alpha matting approximate this; simple color-key tools generally can't.
Fixing a Halo After the Fact
If you already have a cutout with a light or colored fringe:
- Contract the selection by 1–2 pixels before finalizing. Crude but effective, and it costs a little edge detail.
- Feather the edge slightly (0.5–1.5 px) so the transition is gradual rather than a hard line.
- Desaturate the edge pixels. A green fringe from a green screen, or a white fringe from white paper, becomes far less noticeable when the color is drained even if the brightness stays.
- Match the new background's brightness. A cutout from a white background looks worst on black. If you can choose, placing it on a light background hides residual fringing almost entirely.
Shooting So It's Easy
This is where the real win is:
- Use a background color that is nowhere in the subject. For dark hair, a mid-grey or light background separates cleanly; for blonde hair, avoid white and cream.
- Separate the subject from the backdrop by a couple of metres. This prevents the backdrop color from bouncing onto the hair (color spill) and lets the backdrop blur slightly, which is fine for keying.
- Light the background separately and evenly. An evenly lit backdrop is the single biggest factor in a clean key.
- Avoid flyaway strands deliberately: a little water or product on the hair before shooting saves an hour of edge work.
- Watch the rim light. A bright rim light on hair against a dark background makes edges far easier to separate.
Know When to Stop
For a small avatar or a thumbnail, a slightly imperfect hair edge is invisible — don't spend an hour on pixels nobody will see at 80 px. For a large hero image or a print, it matters. Match the effort to the final display size, and if the cutout genuinely can't be made clean, consider keeping a soft background instead of forcing transparency.