Sub topic 12
Match Brightness, Contrast, and Color
This chapter assumes you can create a layer mask, paint on it with a soft brush, and add an adjustment layer to the Layers panel. You also need to know how to clip a layer to the one below it. The earlier chapters on masks and adjustment layers cover these.
A cut-out subject can have a clean edge and still look pasted in. The usual cause is that the two photos disagree about light. One may be bright and the other dim. One may be warm and the other cool. One may have deep blacks and the other a faded, milky look. This chapter shows how to measure those differences and correct them with clipped adjustment layers, so that the edit stays non-destructive and limited to the layer that needs it.
Why clipping matters here
An adjustment layer placed at the top of the stack changes every layer beneath it. That is wrong for matching, because you want to change only the pasted subject and leave the background alone. Clipping fixes this.
To clip an adjustment layer, select the subject layer, then add the adjustment from the Adjustments panel or the half-black, half-white circle at the bottom of the Layers panel. Next, click the clipping icon (a small square with a down arrow) at the bottom of the Properties panel. You can also hold Alt (Windows) or Option (Mac) and click the line between the two layers. An arrow appears on the adjustment layer, and its effect now stops at the subject layer.
Clipping respects the subject's layer mask. Pixels hidden by the mask are not adjusted, and there is no halo around the cut-out.
Step 1: Diagnose before you adjust
Decide what is different before you touch a slider. Compare the two photos on four properties.
| Property | Question to ask | Typical mismatch |
|---|---|---|
| Brightness | Is the subject's overall exposure similar to the background's? | A subject shot in shade placed on a sunlit beach |
| Contrast | Do the darkest and brightest areas reach similar levels? | A flat, hazy subject on a punchy background |
| Color temperature | Is the light warm (yellow-orange) or cool (blue)? | A golden-hour subject on an overcast sky |
| Saturation | Are the colors equally vivid? | A vivid subject on a muted background |
Also look at the direction of the light. Find the brightest side of the background scene and the bright side of the subject. If they differ, brightness and color adjustments can only help so much. You may need to flip the subject horizontally (Edit > Transform > Flip Horizontal) or choose a different photo.
A quick diagnostic is to look at the shadows and highlights in each photo. A background with no pure black will make a subject with true blacks look too heavy. A background with a warm cast will make a neutral subject look gray and cold.
Step 2: Match brightness and contrast with Levels
Levels gives you three controls on a histogram: the black point, the white point, and the midtone slider. It suits matching because each control maps to something you can see.
- Select the subject layer.
- Add a Levels adjustment layer and clip it.
- Use the midtone (gray) slider first. Drag it left to brighten the subject, or right to darken it. This changes midtones without clipping highlights or shadows.
- If the subject looks flat, move the black input slider right until it meets the start of the histogram, and the white input slider left until it meets the end. This stretches the tonal range.
- If the subject is too contrasty for the scene, use the output sliders at the bottom. Raising the black output value lifts the blacks and gives a softer, faded look that matches a hazy background.
Curves is the alternative when you need finer control. Click the middle of the diagonal line to anchor midtones, then drag the lower-left part up to lift shadows or the upper-right part down to tame highlights. Levels is quicker to read. Curves can adjust several tonal ranges at once without the sliders affecting each other.
Step 3: Match color with a Color Balance or Photo Filter layer
Once brightness is close, correct the color cast. There are two good choices.
Color Balance
Color Balance has separate controls for Shadows, Midtones, and Highlights. Each has three sliders: Cyan–Red, Magenta–Green, and Yellow–Blue. Warm light usually adds red and yellow to the highlights and leaves shadows cooler. Cool, shaded light does the opposite.
To make a neutral subject fit a warm sunset scene, you might set Highlights toward Red and Yellow, set Midtones slightly toward Red, and leave Shadows nearly alone or push them slightly toward Blue. Keep "Preserve Luminosity" checked so color changes do not alter brightness.
Photo Filter
Photo Filter is a one-control option. Choose a Warming Filter (85) or Cooling Filter (80), then set Density. It works well for a uniform cast, but it affects all tones equally, so it cannot give warm highlights and cool shadows.
Sampling a color from the scene
To match a specific color, use a Solid Color or Photo Filter layer with a color sampled from the background:
- Click the foreground swatch, then hover over the background photo and click a mid-bright area of the scene to sample it.
- Add a Photo Filter layer, clipped, and choose Color in place of Filter. Pick the sampled color.
- Set Density low, around 10 to 25 percent, then adjust.
A high density produces an obvious tint, which is a common error.
Step 4: Match saturation
Add a Hue/Saturation layer, clipped. Reduce Saturation in steps of 5 to 10 if the subject is more vivid than the scene. If one color is the problem, such as an intensely red jacket, switch the dropdown from Master to Reds and adjust only that range. Avoid pushing Master saturation up to compensate for dullness. It exaggerates noise and skin tones go orange quickly.
Vibrance is gentler than Saturation. It raises muted colors more than ones that are already strong.
Step 5: Use masks on the adjustment layers
Each adjustment layer has its own mask. Use it when only part of the subject needs correcting. If the light falls from the left, the left side of the subject should be brighter than the right.
- Click the adjustment layer's white mask thumbnail.
- Select the Brush tool with a large soft brush (hardness 0 percent) at 20 to 30 percent opacity.
- Paint black where you want the adjustment removed, or fill the mask with black (Ctrl+I or Cmd+I to invert) and paint white where you want it applied.
Painting a gradient is often better than a brush. Use the Gradient tool in black to transparent on the mask to make an adjustment that fades across the subject. This imitates light falling off.
Common errors
- Adjusting the whole stack. The adjustment layer was not clipped. Look for the downward arrow beside its thumbnail.
- Matching the average and ignoring the shadows. Black points differ between photos. Check the darkest areas of the subject and the scene.
- Over-correcting. Large moves in one layer cause clipping and banding. Use several small adjustments, each at a modest strength.
- Matching in a different color mode or bit depth. Work in the same color profile for both photos, usually sRGB for web output. Converting later can shift colors.
- Judging on a bright monitor. If your screen is very bright, a subject can look matched to you and too dark on other screens. Compare against a neutral view.
- Ignoring the edges. After a color shift, a thin light fringe from the original background may appear around the subject. Return to the layer mask and shrink it slightly, or use Select and Mask > Decontaminate Colors.
A short worked example
You have a portrait shot indoors under tungsten light, placed onto a snowy mountain at midday.
- The subject looks orange and dim, and the scene is blue-white and bright.
- Add a clipped Levels layer. Move the midtone slider left to brighten the subject, then bring the white input slider in slightly to add contrast.
- Add a clipped Color Balance layer. In Midtones, move Cyan–Red toward Cyan and Yellow–Blue toward Blue. Repeat at lower values in Highlights.
- Add a clipped Hue/Saturation layer and drop Saturation by 10.
- On the Levels mask, paint black with a soft low-opacity brush on the side of the face turned away from the sun, so that side stays slightly darker.
- Zoom to 25 percent and toggle each layer to confirm that the subject now sits in the same light as the scene.
Exercise
You add a Curves adjustment layer to brighten a pasted subject, and the background photo also gets brighter. What went wrong, and how do you fix it without deleting the layer?
Show answer
The adjustment layer is not clipped, so it affects every layer below it. Select the adjustment layer and either click the clipping icon in the Properties panel or Alt/Option-click the boundary between it and the subject layer below. An arrow then appears on the adjustment layer, and its effect applies only to the subject.
Exercise
A subject placed in a warm sunset scene still looks cold and gray after you raise brightness. Name an adjustment layer you could add, the setting you would change, and one way to avoid an obviously tinted result.
Show answer
Add a clipped Color Balance layer and, in Highlights and Midtones, move the Cyan–Red slider toward Red and the Yellow–Blue slider toward Yellow, with Preserve Luminosity on. Alternatively, use a clipped Photo Filter set to the Warming Filter (85). To avoid a heavy tint, keep the changes small, such as a Density of 10 to 25 percent, and mask the adjustment where the scene's light does not reach the subject.