Green Screen Remover. Runs on your device

CHROMA KEY NOTES / 019

Hair, Fur and Fine Edges: Where Chroma Key Breaks

SHORT ANSWER

A colour key does not delete hair, it makes strand pixels partly transparent and then strips their green. On this tool a pixel has to be 74.5 percent hair to reach half opacity, so every strand thinner than about three quarters of a pixel is rounded down to nothing. The pixels that do survive at 25 to 75 percent coverage are the ones that look grey, washed out or green-fringed.

Open the green screen remover ↩

What a key actually does to one strand pixel

Hair, fur and feathers have one property in common: at their outer edge, a photograph rarely contains a pixel that is pure hair. It contains a mix. When a 30-pixel-wide strand is photographed at close range the blend is narrow, maybe one or two pixels. When the same portrait is exported at 1200 pixels wide for a web page, that strand is one pixel wide and the blend is the whole thing. The pixel is not hair with green around it; it is a single number that describes 40 percent hair and 60 percent green cloth.

That is the input the tool receives. In the Green preset, the score for such a pixel is its green dominance, and the cut point sits at 198.6 at the default tolerance of 24. A pixel below that score is a candidate; adjacent candidates connected to the frame border are cleared. Everything else on the boundary of the cleared region enters the feather ramp, which spans 65.4 score units at the default softness of 18. I took the tool's own bundled sample, a 640 x 420 studio still with 209,102 backdrop pixels, and measured the same blend at five coverage levels between the hair colour actually present in that photo (200, 186, 128) and the screen colour (0, 210, 106).

Table of five hair-coverage levels showing the stored pixel value, the alpha the tool outputs, and how visible the pixel remains, plus a panel showing how the spill step rewrites the green channel
Fig. 1 — Half opacity arrives at 74.5% hair coverage. At 50% coverage the tool outputs alpha 0.029 and strips 79 of the 198 green levels, turning a strand pixel into a grey-green speck.
Hair coveragePixel storedAlpha outGreen stripped
10%20, 208, 1080.000100 levels
25%50, 204, 1120.00092 levels
50%100, 198, 1170.02979 levels
75%150, 192, 1220.51420 levels
90%180, 188, 1260.8950.8 levels

Two columns matter here and they are not the same column. The third says how much of the pixel's opacity survives. The fourth says how much of its colour survives. A strand pixel at 50 percent coverage keeps almost none of either: alpha 0.029 means three percent visibility, and the 79 levels removed from its green channel leave a pixel whose red and blue now sit close to its green, so it reads as grey-green rather than hair. This is the colour arithmetic behind the two complaints that recur in every hair-masking thread: strands that vanish, and strands that come back with the wrong tint.

Why more softness makes it look worse, not better

The natural reaction is to raise edge softness. That widens the ramp, which is the range of scores that receive a partial alpha, so more pixels around the cleared region get processed. It does not give any pixel more coverage. On a synthetic strand strip built from the same photo's real hair pixels and screen pixels, alternating one pixel of hair with one pixel of screen, all 6,440 strand pixels survived, and none of the 6,440 came out at more than half opacity.

The feather is doing exactly what it was designed to do: every pixel adjacent to a cleared gap gets a smooth ramp. When the subject is one pixel wide, every pixel in it is adjacent to a cleared gap, so the whole strand lands on the low end of that ramp. Widening the feather spreads the same low alpha over more neighbours. That is why the effect on screen looks like a halo that got fuzzier rather than hair that came back. For the mechanism itself, edge softness walks through what the slider changes at each setting; the part that matters here is that softness never adds coverage.

Three edge types stacked: a hard edge with zero subject loss and zero fringe, a blurred edge keeping 99.8 percent of the subject while leaving 336 to 377 faint fringe pixels, and a strand edge where all 6,440 strand pixels survive but all are at half opacity or less
Fig. 2 — The same key, three edges. Hard edge: 0 subject pixels lost and 0 fringe. Blurred edge: 336 to 377 faint fringe pixels at 0 to 23% alpha. Strand edge: 0 of 6,440 strand pixels above half opacity.

The three kinds of fine edge, measured separately

Not every difficult edge is the same problem, and the three cases need different remedies. I ran the same preset over three boundary types on the same photograph.

A hard edge. A rectangle of real subject pixels with no blend at all. Result: zero subject pixels deleted, zero visible fringe, and 1,630 partial pixels that all sit inside the subject rather than outside it. This is what a colour key is genuinely good at, and it is also why product shots, cards and logos key almost perfectly. Nothing about the tool is broken; the input simply matches its model.

A blurred edge. The same boundary given a 1, 2 or 4 pixel anti-aliasing pass, which is what a wide aperture or a downscale does to the values. Subject survival stayed at 99.84 percent, 99.83 percent and 99.83 percent. Almost nothing was deleted. What did appear was 336, 355 and 377 pixels outside the subject left at between 0 and 23 percent alpha, with only 0 and 2 of them solid enough to see at a glance. On a white page those faint pixels are invisible. On a dark page they form a pale outline around the subject. The fix is not in the slider: it is depth of field, distance from the screen, and keying at the size you will publish. If you resize afterwards, the edge ramp you built at full size is exactly what downscaling a large image has already covered on the memory side, and the same resize creates this ramp on the geometry side.

A strand edge. One pixel of subject, one pixel of screen, repeated across the frame, built from that photo's own hair colour and its own screen colour. Not one strand pixel was deleted and not one strand pixel came out solid. The gaps between strands were cleared, because the flood pass starts at the frame border and travels through every connected screen-coloured pixel, so a one-pixel gap between two strands is not an isolated pocket, it is the background itself. This is the case that no slider addresses.

What other people report, and which case they are in

The reports line up with those three cases once you sort them. A designer cutting out hair for years described the escape route they settled on: after the pen tool, the magic wand and the refine-edge sliders, they redrew strands with a sampled brush, because "redrawing hairs gave me the best results so far" (Graphic Design SE 67827). That is a person who discovered by practice that the mask cannot contain a strand that the file does not contain. Another user, building an automatic mask with ImageMagick, reached the same wall from the other direction: "the mask misses out part of the hair, which as can be observed in the original image, is slightly tinted green" (Graphic Design SE 105947). Tinted hair is the 50 percent coverage row of the table above.

The clearest case is small. Someone editing in iMovie reported that their actress's "blue eyes and blonde hair, both of which became partially transparent", and then defended the lighting: "I think the scene was lit fine, so her hair shouldn't have had green reflecting off of it" (Video SE 10702). Their diagnosis is right about the lighting and wrong about the cause. Light evenly and the blend still exists, because the blend comes from resolution, not from spill. Blonde hair against a dark tinted backdrop is the worst version of the strand case: light pixels mix with a dark screen, the difference between hair and backdrop collapses, and every fine pixel is a blend.

When the strand is worth fighting for

If the image is going to be seen at full size, a reshoot is usually cheaper than a repair. Three changes move the material from the strand case into the hard-edge case, where this tool loses nothing: use a longer lens so the head occupies more pixels, stop down so the depth of field covers the whole head, and keep the subject far enough from the screen that spill falls off. Then key at the final size. The decision card below is the short version, and green spill after keying covers the lighting and spill side of the same shot, which is the half you can still fix in the camera.

If the picture is already taken and it is a portrait for social, there is a legitimate shortcut: keep the cut-out for everything except the hairline. Composite the cut-out over the new background, then mask a soft band across the top of the head and blend the original photograph into it. The screen colour is still in that band, so pick a background close to the screen's brightness and the leftover tint reads as a shadow rather than as a mistake. This is a compositing decision, not a keying one, and it is honest about what the file contains.

Three cards: edges a colour key handles well, edges to fix before keying, and edges a colour key cannot do, followed by the test of shrinking the image to publishing size
Fig. 3 — Card 1 is everything a key does well: 0 subject pixels lost, 0 fringe. Card 2 is a camera and downscale problem: 336 to 377 faint fringe pixels. Card 3 is the strand case, where the tool rounds 6,440 of 6,440 pixels to half opacity or less.

Questions people actually ask

Why did the hair survive on the checkerboard but vanish on the background?
Because the transparent checkerboard shows what is still there. A pixel at 3 percent alpha is nearly invisible on white and nearly invisible on a checkerboard too, but a pixel at 30 percent alpha can pass unnoticed over a busy photo and become an obvious ghost over a dark solid colour. The export is identical; the background you composite over decides whether the leftover pixels read as hair or as haze.
Do short-haired subjects have the same problem?
Much less. A short crop has a smaller perimeter for its area, so fewer pixels sit in the blend, and the remaining edge is usually close to the hard-edge case where this tool deletes nothing. Long, fine, backlit hair is the worst configuration, and backlighting makes it worse because the rim pixels brighten exactly where the screen is also bright.
Would a blue screen save the blonde hair?
It changes which failure you get, not whether you get one. On a blue screen, blonde hair sits further from the key colour, so fewer strand pixels are deleted, but the ones that remain become cyan-tinted rather than green-tinted because blue spill is harder to spot against skin and easier to spot against hair. The coverage problem is the same, since it is set by how many pixels the strand occupies.
Can I raise tolerance to keep more of the hair?
No, and it goes the wrong way. Raising tolerance moves the cut point up the score scale, which removes more boundary pixels before the feather ramp is applied. Tolerance buys you a cleaner backdrop on a badly lit screen; it cannot buy back a pixel that only exists as a 40 percent blend. The tolerance slider page has the per-setting numbers.
What about fur on a product photograph?
Treat it as the strand case and decide by output size. A fur trim photographed for a 600-pixel product tile is mostly blend, so key it and accept a slightly soft silhouette. The same item shot for print at 3000 pixels gives each tuft several pixels, so the edges come out clean. For the print side, see why a transparent PNG prints with a white box, which is the next surprise after the cut-out looks right on screen.