Green Screen Remover. Runs on your device

CHROMA KEY NOTES / 015

Edge Softness: Feather a Cutout Without Losing Detail

SHORT ANSWER

Edge softness sets the width of the transition band that starts at the cut point, so it changes how opaque the edge pixels are, not how many of them are removed. Feather is computed as 15 plus 2.8 times the slider value, in the same green-excess units the cut point uses: 15 units at 0, 65.4 at the default of 18, 295 at 100. Set it just wide enough to cover the edge that is already in the photo, and go back toward 0 for anything with a hard silhouette.

Open the green screen remover ↗

Two sliders, two different jobs

Tolerance and softness are usually sitting next to each other in the same panel, which invites the reading that they are two amounts of the same thing. They are not. Tolerance decides on which side of a colour-distance line a pixel falls and therefore whether the pixel is background at all. Softness only applies to pixels that survived that test but sit close to it, and it decides how much alpha they keep.

The arithmetic is short enough to quote. The tool computes a cut point from the tolerance slider, compares every pixel against it by green excess, and then, for each surviving pixel that touches a removed neighbour, builds a ramp of length 15 + softness × 2.8 and runs smoothstep along it. Distance measured from the cut point, divided by that length, clamped to one, is the alpha multiplier. In other words the ramp starts at the cut point no matter what the slider says, and the slider moves only the far end.

A colour-distance axis with a fixed cut point and four feather bands of increasing width
Fig. 1 — Softness lengthens the ramp to the right of the cut point; the cut point itself does not move with the softness slider.

What actually changes when you drag it

I replicated the processing chain from the page's own script in a short Python program and ran it over a 640 × 420 studio frame, 268,800 pixels, with tolerance held at its default of 24 and softness swept from 0 to 100 one step at a time. Nothing about the background decision changes, because that decision was already made. What changes is the population of edge pixels and how opaque each of them is.

SoftnessBand widthPartial edge pixelsMean alpha of that bandEdge pixels rounded to clear
0151350.622
10432850.4711
18 (default)65.41,6300.8320
501551,5800.2670
1002951,5060.09144

Two things stand out. The first is that the partial pixel count is not a straight line. It sits around 135 to 285 from 0 to 10, jumps to 1,630 between softness 15 and 16 when the ramp first reaches the second row of pixels inside the subject, and then declines slowly to 1,506 as the slider approaches 100. Somebody expecting a smooth improvement from a smooth slider will find a step instead.

The second is the direction of the mean alpha. It rises from 0.62 to 0.83 at the default and then falls steadily to 0.09 at the top of the range. A wider band does not make edges softer in the sense of smoother; it makes them dimmer, because the ramp is being stretched across pixels that are further and further from the cut point. Past a certain width the entire band rounds down to zero and the edge is a hard cut again, only a few pixels further in. That is exactly what happens at softness 100 combined with tolerance 100: 1,648 pixels go from opaque to fully transparent at rounding, and the partial count collapses to zero.

Four magnified cutout edges at softness 0, 18, 50 and 100 on a transparency checkerboard
Fig. 2 — Same edge pixels, four settings. The silhouette does not move; only the alpha of the boundary row does.

Why softness cannot fix a bad cut

On the same studio frame the number of fully cleared pixels moved from 209,104 to 209,246 across the whole softness range. That is 142 pixels, or 0.05% of the image, and the movement is entirely made of edge pixels that were rounded away. No amount of dragging the softness slider removed a single additional patch of background, because removing background happens earlier, in the connectivity pass.

This is worth stating plainly because it matches what people report in other software. On a stacked comparison of two key passes, the author found that the order alone decided which half of the background disappeared, since each pass judged the same pixels against its own threshold rather than narrowing the first one. Softness shares that limitation from the other side: it is a second-order control applied after the first-order decision has already been made.

Picking a value for the edge you have

The useful question is not "how much softening do I want" but "how wide is the transition in my photo". If the edge is one pixel wide, a fifteen-unit band already spans it, and anything larger spends opacity on pixels that are solid subject. If the edge is genuinely soft, because the subject is hair, fur, or moving, a narrow band will clip the outermost strands to zero and leave a crisp silhouette where a soft one belongs.

A decision card mapping hard edges, slightly soft edges, hair and the top of the slider to suggested softness values
Fig. 3 — Starting points, in the order tolerance first, softness second.

Things that go wrong at each end

At or near 0

At or near 100

A workflow that does not depend on luck

Work in the order the sliders are applied, not the order they are presented. First set tolerance so that the background is removed and nothing inside the subject is; check the cutout on white and on a dark background, because a rim shows up on one and hides on the other. Then lower softness to 0 and walk it up two or three steps at a time, watching the edge only. Stop at the first setting where the transition in your photo is covered. If the edge still looks ragged, the problem is upstream, in the lighting or in the subject colour, and no softness value will repair it.

For a transparent cutout heading into printing or a store listing it is usually better to stop early: a small hard band composites predictably onto any colour, while a wide translucent rim depends on what is behind it. The printing walkthrough and the white background comparison both come down to the same thing, which is that a pixel that is only partly there gets interpreted differently by every program that touches it.

Where the subject is the thing the band cannot save

There is one situation where no softness value is even the right question: when the colour you are trying to protect is the colour you are keying out. Softness only shapes pixels that sit near the cut point. A subject whose own colour scores below that cut point is not near the boundary, it is on the far side of it, so the band has nothing to shade and the pixels are removed as background.

The green preset makes this easy to see because the score is a single number. A mid-green polo shirt scores 208.1, which sits above the cut point of 198.6 at tolerance 24 and below the 209 at tolerance 40, so the shirt survives at the default and vanishes in one step if the slider moves up. A houseplant leaf at 188.7 is already below 198.6 and keeps none of its 81,600 pixels at the default. In both cases the softness slider produces no useful effect, because there is no partial edge to feather once the whole area has been classified as backdrop.

A green polo shirt scored at 208.1 with the green excess formula, shown against the tolerance cut points of 183, 198.6, 209 and 247, and three result cards for tolerance 0 to 24, 40 and 100.
Fig. 4 — the score decides whether an area is near the boundary at all; softness only shapes what is left. The full walkthrough is in when the subject is green.

The practical consequence is an ordering rule. Decide which side of the cut point your subject sits on before touching softness, because softness cannot move a colour across it. If a green garment or a green prop is part of the shot, the choice that decides the outcome is the backdrop, not the sliders: the same plant that kept 0 of 81,600 pixels on a green key kept all 81,600 on a sampled blue one at every tolerance setting.

Questions people actually ask

Does edge softness remove more background?
No. On the studio frame it moved the fully cleared count by 142 pixels across the whole slider, against roughly 209,000 that were already cleared by tolerance.
What softness should I use for a hard product edge?
Start at 0. The minimum band of 15 units is already wider than a one-pixel transition, so 0 gives the truest silhouette; raise it only if the edge in the photo is visibly soft.
Why does a high softness make the edge look faded on a checkerboard?
Because the ramp reaches solid subject pixels and gives them a low alpha. At softness 100 the band is 295 units wide and its mean alpha is 0.09, so pixels that used to be opaque are nearly invisible.
Why did the edge get harder when I pushed softness to the top?
Because every pixel in the widened band rounded down to zero and was deleted. At tolerance 100 that carries off 1,648 pixels and leaves no partial ones at all.
Do I set tolerance or softness first?
Tolerance first. It decides where the boundary is, and softness can only shape what happens after that point, never recover background the tolerance left in place.