Sub topic 13
Putting it together: a repeatable workflow
This chapter assumes you have worked through the earlier chapters. You should know how to create an adjustment layer and edit it in the Properties panel. You should be able to read a histogram, use Levels, Curves, and Hue/Saturation, and limit an adjustment with a layer mask or clipping. Here you combine those pieces into one order of work that you can repeat on any photo.
Why a fixed order helps
Each adjustment layer changes the values that the layers above it receive. Photoshop processes the stack from the bottom up. If you fix color before you set the black and white points, a later tonal change can undo part of your color work. A fixed order lets you decide quickly what to do next. It also gives you a place to look when a result seems wrong.
The order below goes from global to local and from tone to color.
- Inspect the image and read the histogram.
- Set the black and white points with Levels.
- Correct color casts with per-channel Levels or Curves.
- Shape contrast with Curves.
- Adjust color with Hue/Saturation.
- Limit adjustments with masks and clipping.
- Check stacking order, opacity, and blend modes.
- Review the result with each layer switched on and off.
Step 1: Inspect before you adjust
Open the image and look at it at a normal viewing size. Then open the Histogram panel or the histogram shown in the Properties panel for a Levels layer. Ask four questions.
- Does the data reach the left edge (black) and the right edge (white)? If it stops short on both sides, the image is flat.
- Is there a tall spike touching either edge? That can mean clipping, where detail is lost.
- Is the mass of data mostly left, mostly right, or centered? This tells you whether midtones need to move.
- Do the red, green, and blue channels line up? Channels that are shifted apart often mean a color cast.
Write down your answers, even in your head. They decide which of the next steps you need. A photo with a good tonal range and a correct color balance may need only one adjustment layer.
Step 2: Set the tonal range with Levels
Add a Levels adjustment layer. Drag the black input slider to the point where the histogram data begins, and the white input slider to where it ends. Then move the midtone slider to set overall brightness.
The Python function from the Levels chapter shows what happens to each value.
def levels(value, in_black=0, in_white=255, gamma=1.0, out_black=0, out_white=255):
"""Map one 8-bit channel value the way a Levels adjustment does."""
t = (value - in_black) / (in_white - in_black)
t = min(max(t, 0.0), 1.0) # clip below the black point and above the white point
t = t ** (1.0 / gamma) # gamma > 1 brightens midtones, gamma < 1 darkens them
return round(out_black + t * (out_white - out_black))
# A flat image whose data runs from 30 to 220.
for v in (30, 125, 220):
print(v, "->", levels(v, in_black=30, in_white=220, gamma=1.0))The values 30 and 220 become 0 and 255. The middle value 125 stays in the middle at 128. The image now uses the full range.
Be careful not to move the sliders past the start of the data. Everything beyond the slider is clipped to pure black or pure white. Hold Alt (Windows) or Option (Mac) while you drag a black or white slider. Photoshop shows a threshold preview, so you can see which pixels are about to clip.
Step 3: Remove color casts
If the channels did not line up in Step 1, fix that now, before you shape contrast. There are two common ways.
- In a Levels layer, switch the channel menu from RGB to Red, Green, or Blue. Set the black and white points for that single channel.
- In a Curves layer, select one channel and move its midpoint. Raising the Blue curve adds blue. Lowering it adds yellow.
Another option is to use the gray-point eyedropper on something that should be neutral. This works well when the scene contains a gray or white object. It works badly when nothing in the scene is truly neutral, such as a sunset.
Doing this before contrast matters for a practical reason. A strong S-curve in Curves amplifies any imbalance between channels. A slight cast in the shadows becomes a strong cast after contrast is added.
Step 4: Shape contrast with Curves
Add a Curves layer. For most photos, a gentle S-curve is enough. It darkens the shadows, brightens the highlights, and leaves the midtone mostly unchanged.
def curve(value, points):
"""Look up an 8-bit value on a curve defined by (input, output) control points.
Uses straight segments between points; Photoshop draws a smooth spline instead."""
pts = sorted(points)
for (x0, y0), (x1, y1) in zip(pts, pts[1:]):
if x0 <= value <= x1:
return y0 + (y1 - y0) * (value - x0) / (x1 - x0)
raise ValueError("value is outside the curve's input range")
# A simple S-curve: darker shadows, brighter highlights, midtone unchanged.
s_curve = [(0, 0), (64, 48), (192, 208), (255, 255)]
assert curve(128, s_curve) == 128In this example, an input of 64 becomes 48, and 192 becomes 208. The gap between dark and light tones grows, which the eye reads as contrast.
Keep the curve gentle. A steep section of the curve stretches a small range of input values over a large range of output values. That can cause banding or visible noise. If you want contrast only in the midtones, anchor the shadow and highlight ends with extra control points so they do not move.
Step 5: Adjust color with Hue/Saturation
Add a Hue/Saturation layer. For global changes, use Saturation or Vibrance-like restraint. Small changes, such as plus 5 to plus 15, are usually enough. A large global boost pushes the already saturated colors into clipping.
For targeted changes, open the range menu and choose one color, such as Yellows or Blues. Then drag the range markers to define the core and the falloff. Change saturation or hue only for that range. This is how you calm a too-bright green lawn or deepen a blue sky without touching skin tones.
Avoid large hue shifts. They can produce edges where the selected range ends and the unselected range begins. Use the falloff handles to widen the transition.
Step 6: Make adjustments local
Some problems affect only part of the image, such as a dark foreground or a bright sky. Use the mask on the adjustment layer.
- A black area of a mask hides the adjustment. A white area shows it. Gray shows it partially.
- For a smooth transition, use the Gradient tool in black-to-white or white-to-black on the mask.
- For a specific object, paint on the mask with a soft brush at low opacity. Build up the effect in several strokes.
- Use the Properties panel's Feather slider for the mask to soften edges without repainting.
If the adjustment should affect only one pixel layer, such as a single object on its own layer, clip it. Hold Alt or Option and click the line between the adjustment layer and the layer below it. The adjustment then affects only that layer, and its effect follows that layer if you move it.
| Problem | Tool | Local control |
|---|---|---|
| Sky too bright | Curves or Levels | Gradient mask |
| Face too dark | Curves | Soft painted mask |
| One object has a wrong color | Hue/Saturation | Clip to the object's layer |
| Whole image looks flat | Levels | None needed |
Step 7: Check order, opacity, and blend modes
Look at the Layers panel from top to bottom. Layers lower in the stack act first. If a Hue/Saturation layer sits below a Curves layer, the curve works on already recolored data.
Two controls help you tune the result.
- Opacity on the adjustment layer scales the whole effect. If a Curves layer looks too strong at 100 percent, set it to 60 percent.
- The blend mode changes how the layer combines with the image. Setting a Curves layer to Luminosity applies its tone change without shifting color. Setting a Hue/Saturation layer to Color limits it to color change without altering brightness.
The Luminosity setting is useful when a strong contrast curve changes saturation in a way you do not want.
Step 8: Review and name your layers
Toggle each adjustment layer off and on with the eye icon. Compare the before and after at each stage, not only at the end. If one layer makes no visible difference, delete it.
Give each layer a name that says what it does, such as "Levels - set range", "Curves - contrast", or "Sky darken". Group related layers together. Naming costs a few seconds, and it makes the file understandable when you return to it later.
Common errors
- Adjusting by eye on a bad display. The histogram is the check. A very bright screen can lead you to darken a correct image.
- Clipping through Levels. If the histogram shows a spike at an edge after your edit, pull the slider back.
- Using Curves for a job Levels does in one step. Setting black and white points is quicker in Levels.
- Painting masks at full opacity. The edge of the effect shows. Use a soft brush at low opacity.
- Piling up corrections. Several layers that each make a small change usually can be replaced by one or two.
- Forgetting that the order matters. If a result stops matching your expectation, reorder the layers before you change the settings.
A worked pass
Imagine a landscape photo that looks flat, a little blue, and has a bright sky.
- The histogram stops at 25 on the left and 230 on the right, and the blue channel sits to the right of red. So you need a range fix and a color fix.
- A Levels layer sets black to 25 and white to 230.
- A Curves layer on the Blue channel lowers the midpoint slightly to remove the cast.
- A second Curves layer adds a gentle S-curve and is set to Luminosity.
- A Hue/Saturation layer raises Greens by 8 to lift the grass.
- A Levels or Curves layer with a gradient mask darkens the sky.
- The layers are named and grouped, and each is toggled to confirm that it helps.
Exercise
A photo has a histogram that stops well short of the right edge, and its shadows look slightly green. You plan to use Levels, a per-channel Curves layer, a contrast Curves layer, and Hue/Saturation. In what order should you add them, and why?
Show answer
Add Levels first to set the white point and use the full range. Then add the per-channel Curves layer to remove the green cast. Then add the contrast Curves layer, because contrast amplifies any remaining channel imbalance. Add Hue/Saturation last to adjust color on data that is already tonally and color balanced.
Exercise
You added a strong S-curve and the colors look oversaturated. You do not want to change the curve shape. What is one change that removes the saturation shift?
Show answer
Change the blend mode of the Curves layer to Luminosity. The layer then changes brightness only and leaves the original color values alone.