Sub topic 2
Fitting an element with Free Transform, Perspective, and Warp
This chapter assumes you can work with Smart Objects, layer masks, clipping masks, and Levels and Curves adjustment layers. A Smart Object is a layer that keeps its original pixels, so you can transform it again without quality loss.
Fitting the element to the plane
Place your cut-out as a Smart Object, then press Ctrl+T (Cmd+T on macOS) for Free Transform. Use Free Transform to set position and rough size. For a flat wall or ground plane that runs at an angle, right-click the box and choose Perspective. Drag a corner along the direction of the plane's lines. For curved surfaces, such as a bent sign or a wrapped label, choose Edit > Transform > Warp. Warp moves control points, so use it sparingly. Too much warp makes the object look rubbery.
Getting scale right
Scale comes from a reference object. Find something in the background with a known height, such as a door (about 2 m) or a step (about 0.2 m). Measure its height in pixels with the Ruler tool. Then set your element so that its height, at the same depth, follows the same ratio. An element at the same distance as the door should match the door's pixel height for an equal real height.
Blending cut-out edges
Hard cut-out edges reveal the paste. Add a layer mask to the element, then paint with a soft brush at low opacity to feather the edge. Use Select and Mask for hair or fine detail. To remove a bright halo, choose Layer > Matting > Defringe and set a width of 1 to 2 pixels.
Matching brightness and contrast with Levels and Curves
Clip a Levels adjustment layer to the element by Alt-clicking (Option-clicking on macOS) between the layers. Move the black and white input sliders until the element's darkest and brightest areas match the background's. Then add a Curves layer, also clipped, to adjust midtones. Keep the curve gentle, because large curves push detail out of the image.
Matching colour casts and saturation
Compare the element's colour cast with the background's. Use Color Balance (Ctrl+B or Cmd+B) to shift shadows, midtones, and highlights toward the background's colour. Reduce saturation with Hue/Saturation (Ctrl+U or Cmd+U) if the element looks more vivid than its surroundings.
Exercise
Your background door is 200 pixels tall and stands 2 m high. A person at the same depth should be 1.7 m tall. How many pixels tall should the person be?
Show answer
1.7 / 2 × 200 = 170 pixels.