Retouching & compositing

Hair compositing: the background changes the edge

A practical approach to compositing hair: preserve the silhouette, separate masking from colour correction and judge fine edges against the final background.

Original AI editorial portrait of a copper-haired woman lowering her chin towards a raised turquoise shirt shoulder against a pink wall.
Original AI-generated portrait: silhouette, fine hairs and a directional wall shadow establish an image to discuss. Not a real model shoot, manual retouch or masking demonstration.

A hair cutout can look convincing against one background and awkward against another. A pale fringe may disappear on white, then become obvious on dark grey. Fine strands can turn into a bright outline when the old background’s colour remains in their edges.

For a brand or agency commissioning a portrait composite, the useful question is not whether every hair has been selected. It is whether the person, hair shape and light belong in the final image. That decision needs the intended background and delivery crop.

Agree the silhouette before chasing single strands

Start with the overall hair shape: its volume, parting, dense sections and deliberate flyaways. These are part of the person’s appearance and styling. Removing every irregularity can turn a distinctive haircut into a smooth helmet; preserving every stray pixel can make the perimeter noisy.

The copper-haired portrait is an original AI-generated editorial study. Its fringe, raised shoulder and close crop make the silhouette the first thing to judge. It is not a photographed source, a demonstrated extraction or evidence that a mask has been produced. Use an approved source image when likeness or styling must remain exact.

Use the final background as the working context

Place the intended background beneath the subject early. Check the light direction, brightness behind the head and local contrast around the hair. A technically careful selection cannot reconcile a strongly backlit subject with a scene that provides no reason for that light.

Temporary light, dark and contrasting fills can help reveal missing strands or leftover fringes. Treat them as diagnostic views. Return to the actual composition before accepting a correction: a change that looks cleaner on a test colour may make the final edge too thin or too hard.

Separate the dense hair from the fine boundary

Different parts of the edge need different treatment. Dense hair should retain its body. Small gaps between curls need to reveal the background, while fine hairs may need partial transparency and softer focus. Applying one strong feather or contraction to the whole head can damage all three.

In Photoshop, Select and Mask provides tools for refining selections. Adobe documents Refine Hair and the Refine Edge Brush for hair boundaries. Use them as a starting point, then inspect locally rather than assuming a single setting is correct everywhere. Preserve the source layer and keep the mask editable.

Independent AI-generated close rear view of tightly coiled dark hair, fine boundary hairs and a cream collar against apricot.
Independent AI-generated edge study: dense curls, open gaps and fine hairs need different judgements. Separate model and lighting; not a before-and-after or a completed mask.

Diagnose colour and opacity as separate problems

If a strand is in the right place but carries the old background’s hue, removing more of the mask may simply erase useful hair. Decide whether the problem is unwanted background visibility, contaminated colour, an overly bright edge or a real highlight that should survive.

Make local corrections on separate, controllable layers where practical. Sample nearby hair tones carefully and preserve their variation. A flat painted border can be as conspicuous as the fringe it replaces. Do not neutralise every warm or bright strand: some colour belongs to the original lighting and material.

Repair sparingly and approve at delivery scale

Where the source does not contain a usable edge, a small amount of reconstruction may be necessary. Follow the direction, thickness and grouping of nearby hair. Avoid repeating identical brush stamps or drawing a decorative ring of equally sharp strands around the head. Larger losses may call for a better source rather than more painting.

Inspect close enough to find defects, then return to the intended crop and size. Check whether the hair still has weight, whether sharpness agrees with the face and whether the silhouette feels natural. Review the flattened export as well as the layered file. The aim is a convincing person in a coherent image, with the decisions still available for revision.