Editing an ImageLesson 52 of 78

Contents

Editing an Image

Lesson 52 of 78. Sign in to keep your place.

Module 6 · Compositing: making two pictures one

Relighting a cut-out so it belongs

9 min read

Two shadows that are different phenomenaWhat makes itWhat is missing without itContact shadowThe object blocks ambient light fromevery directiondark, tight and fairly sharp, andpresent on a grey dayThe object floatsbuild this one first, before anythingdirectionalCast shadowThe key light is blocked by the objectdirectional, softening and lighteningwith distanceIt reads as an overcast daycoloured by the sky and the bounce,never blackTreating them as one is why so many composites float. Build the contact shadow first: it existsregardless of any key light, it is there on an overcast day when nothing casts a shadow at all, and itis the one that grounds the object.
Treating them as one is why so many composites float. Build the contact shadow first: it exists regardless of any key light, it is there on an overcast day when nothing casts a shadow at all, and it is the one that grounds the object.

Figure

Read the plate before you touch the element

Four readings, in two minutes, from the background photograph alone.

Direction. Find any object with a shadow and note which way it points. Find anything round or cylindrical (a pole, a head, a bottle) and note which side is lit. Two independent readings agreeing tells you where the key light is.

Elevation. A short shadow means a high light. A long shadow means a low one. Overhead noon sun gives a shadow roughly a third the object’s height; late afternoon gives one two or three times it.

Quality. Look at the edge of a shadow. Sharp edge with a clear boundary: a small or distant hard source, usually direct sun or a bare flash. Soft edge that fades over centimetres: a large source, an overcast sky, a window, a bounce. Somewhere between: partial cloud or a moderately sized source.

Colour. Sample the lit side of something neutral and the shadow side of the same thing. Compare. Under sunlight the lit side is warm and the shadow is blue, because the shadow is lit by sky. Under an overcast sky the difference is small. Under artificial light it can be anything. That difference between key and fill is one of the strongest realism cues there is, and almost nobody matches it.

Relighting the element

Assume the element’s light is close enough in direction to be salvageable. Three layers, clipped to the element:

1. A gradient for the key. A Curves layer pulled up, with a gradient on its mask running from the key’s direction. This lifts the side facing the light. Keep it subtle; you are adjusting rather than relighting from scratch.

2. A gradient for the shade. A Curves layer pulled down with the opposite gradient, and (this is the part that sells it) the curve’s blue channel lifted slightly so the shaded side goes cooler as well as darker. Under daylight that is physically what happens.

3. Dodge and burn, on a grey Soft Light layer clipped to the element, to shape the form: deepen the shadow side of a face or a bag, lift the top surfaces facing the sky.

Where a light source in the scene should be spilling onto the element (a neon sign, a window, a fire) add a colour layer clipped to the element, set to Soft Light or Colour, masked to the side facing the source. A subject standing beside a red wall has red light on that side, and its absence is one of those things nobody notices but everybody feels.

Rim light: the cheapest realism there is

When the key light is behind or to the side, the edge of the subject catches it, giving a bright rim along the outline. Adding one to a composited element does more for integration than almost anything else, because it visually ties the element’s edge to the scene’s light rather than to the mask.

How: duplicate the element’s mask into a selection, contract it by two or three pixels, invert within the original selection to leave a thin band along the edge, then use that as a mask on a Curves layer pulled up. Mask off the band on the side away from the light. Two minutes.

The caution: a rim light on the wrong side is worse than none, and a rim light all the way round reads as a cheap cut-out glow.

Contact shadow versus cast shadow

These are different phenomena, and treating them as one is why so many composites float.

The contact shadow (sometimes called occlusion) is the dark area immediately where the object meets the surface, caused by the object blocking ambient light from every direction. It is dark, tight and relatively sharp, it exists regardless of any key light, and it exists even on an overcast day when there is no cast shadow at all.

The cast shadow is the shape thrown by the key light. It is directional, it can be long, and its edge softens with distance from the object.

An object with a cast shadow and no contact shadow still floats. An object with a contact shadow and no cast shadow looks like an overcast day. Build the contact shadow first; it is the one that grounds the object.

The rules a shadow obeys

  • Darkest and sharpest where the object touches, lighter and softer as it recedes. This is the single most-broken rule in amateur compositing, where a uniformly blurred grey shape is pasted underneath.
  • It takes the shape of the surface it falls on. A shadow crossing a kerb bends at the kerb. A shadow on grass is broken up by the blades.
  • It is not black. A shadow is lit by ambient light and by bounce from nearby surfaces. In daylight it is blue; beside a red wall it is reddish. Use a Multiply layer with a colour rather than a black one.
  • It is not uniformly opaque. 20 to 40 per cent on a Multiply layer is usually right; 80 per cent reads as a hole.
  • Multiple lights make multiple shadows, each fainter than a single light’s would be.

When the directions cannot be reconciled

If the element is lit from the left and the plate from the right:

  • Flip the element horizontally, if nothing on it is asymmetric or has text. Instant fix.
  • Change the plate to one whose light agrees.
  • Convert the scene to soft light by choosing an overcast plate, where direction barely matters.
  • Reshoot.

What does not work is relighting a hard-lit element to look hard-lit from the other side. The shadows within the element (under a nose, inside a fold, beneath a brim) are baked into the pixels, and painting the opposite side bright while those remain gives an object lit from both sides with shadows in the wrong places. Every viewer sees it and none of them can say why.

This is the case where recognising the limit early saves the afternoon, and it is the reason experienced compositors spend so long choosing which two photographs to combine.

Every lesson here is open. Your progress is recorded once you pass the Design, before Any Software exam.

Check your understanding

A composited handbag has a long, evenly blurred grey shadow stretching away from it, but it still looks as though it is hovering above the table. What is missing?

Pick the one you would defend. Your answer stays private.

Next lesson · 9 minConstructing what the light would have done

Stuck on something?Ask Neema, your AI tutor

How to cite: Addaly (2026) ‘Relighting a cut-out so it belongs’, in Editing an Image. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/image-editing/matching-light-and-shadow (Accessed: 13 October 2026).