Why edges matter more than anything else
An edge is where two things meet, and it is where the eye goes. A perfect cutout with a one-pixel white fringe reads as a cutout instantly. A beautifully repaired hand with a visible ring around the repair reads as a repair.
And edges are the fault that survives review. You look at the image at 66% on a laptop; the client opens it at 100% on a large monitor in a meeting. The halo you could not see is a line they can.
Fault one: colour contamination
Cut a dark-haired subject out of a bright green background and the hair edge retains green pixels. Place them on a warm background and there is a green rim.
The cause is real: at the boundary, individual pixels contain a mixture of subject and background, because that is what happened at the sensor. A binary mask cannot separate what is physically blended.
Fixes, in order of preference:
- Decontaminate colours: GIMP’s Foreground Select offers this, and it estimates and removes the background contribution from edge pixels. Use it whenever it is available.
- Shrink the selection by 1 pixel before cutting. Crude, loses a little of the subject, works.
- Paint it out on a duplicated layer clipped to the subject, using a soft brush in Colour mode sampling from the adjacent correct hue.
- Reshoot against a neutral background if the subject is yours to reshoot. Grey or white contaminates far less visibly than green or blue.
Fault two: the halo
A bright or dark line following the boundary. Two distinct causes, needing different fixes.
From sharpening. Unsharp masking increases contrast at edges, which by construction creates a light band on one side and a dark band on the other. Overdone, it is visible as a halo. The fix is less sharpening, and sharpening last on the flattened file with a small radius: 0.5 to 1 pixel for screen output.
From upscaling. Some upscalers produce ringing at high-contrast boundaries. The fix is a different upscaler, or masking the artefacted areas and repairing them.
Distinguish them by looking at whether the halo appears on all high-contrast edges in the image, which indicates sharpening or upscaling, or only around your composited element, which indicates a masking problem.
Fault three: over-feathering
The opposite failure. Feather a mask by 20 pixels to avoid a hard edge and you get a soft, blurry boundary that looks like a badly cut sticker.
Correct feathering depends on what the edge is:
- A hard object edge: a bottle, a box, architecture: 0.5 to 1 pixel. Almost none.
- A soft edge: hair, fur, fabric in motion: 2 to 4 pixels, plus proper edge work.
- A repaired region blending into similar texture: 8 to 20 pixels is fine, because there is no real boundary to preserve.
The common error is applying a single feather value everywhere. A cut-out product needs a sharp edge and its shadow needs a very soft one; they are different masks.
Checking properly
Three tests, ninety seconds:
- Zoom to 200% and trace the entire boundary. Slow, and it is the only way to be sure.
- Contrast test. Duplicate the flattened image, apply extreme Curves contrast, and look. Halos and contamination jump out.
- Background swap. Put a mid-grey layer behind a cutout, then a saturated one. Edge faults invisible against the intended background are obvious against a contrasting one.
The one that is not a mistake
Some edge softness is correct and should be left alone. A real photograph has softness at edges from depth of field, motion and the lens itself. A subject cut out with a surgically perfect edge and placed into a scene with natural softness will look too sharp, and that reads as fake just as strongly as a halo.
So match the edge to its context. If the scene’s other edges at that depth are slightly soft, yours should be too. This is the same principle as the previous lesson (the two sources must agree) applied at the boundary rather than across the surface.
It also means an edge can be technically perfect and still wrong for the image, which is the sort of thing that separates people who have done this for a while from people who are following a checklist. The checklist gets you to competent. Looking at what the rest of the photograph is doing gets you past it.
Every lesson here is open. Your progress is recorded once you pass the Vectors, Logos and Things That Get Printed exam.
Check your understanding
A cut-out subject shows a faint light line along its entire boundary, and the same line appears on other high-contrast edges elsewhere in the image. What is the cause?
Pick the one you would defend. Your answer stays private.
Stuck on something?Ask Neema, your AI tutor
