Sub topic 5
Curves: Shaping Contrast with Control Points
Assume you can navigate Photoshop’s Layers panel, understand RGB brightness, and have used an adjustment layer and a histogram. Curves gives you finer control than Levels by letting you map selected input tones to new output tones.
How a Curves adjustment works
A Curves adjustment is a graph:
- The horizontal axis shows the original tone, from black on the left to white on the right.
- The vertical axis shows the resulting tone, from black at the bottom to white at the top.
- The diagonal line means “leave every value unchanged.”
- A point moved above the diagonal brightens its input tones.
- A point moved below the diagonal darkens its input tones.
Create a Curves adjustment layer from the Adjustments panel or choose Layer > New Adjustment Layer > Curves. The Properties panel displays the curve. Click the line to add a control point, then drag the point. Control points anchor parts of the curve, so later changes affect a more limited range.
A common contrast adjustment is an S-curve:
- Add a point in the shadows and move it slightly downward.
- Add a point in the highlights and move it slightly upward.
- Keep the midpoint near the diagonal.
This darkens dark tones and brightens light tones while preserving the general brightness of the middle tones.
def curve(value, points):
"""Map an 8-bit value through straight segments between control points.
Photoshop uses a smooth curve rather than straight segments."""
pts = sorted(points)
if value < pts[0][0] or value > pts[-1][0]:
raise ValueError("value is outside the curve's input range")
for (x0, y0), (x1, y1) in zip(pts, pts[1:]):
if x0 <= value <= x1:
return y0 + (y1 - y0) * (value - x0) / (x1 - x0)
return pts[-1][1]
s_curve = [(0, 0), (64, 48), (192, 208), (255, 255)]
assert curve(128, s_curve) == 128The example maps a 64-level shadow to 48, making it darker. It maps a 192-level highlight to 208, making it brighter. The midpoint remains unchanged.
Composite and individual channels
The default RGB or composite channel changes brightness and contrast across all color channels together. Use it when the image has a tonal problem without a strong color cast.
Choose an individual channel, such as Red, Green, or Blue, to change color balance. Raising the Red curve adds red. Lowering it adds cyan, the opposite color. The same relationship applies to Green and magenta, and to Blue and yellow.
For example, if a neutral wall appears too blue:
- Select the Blue channel.
- Add a point near the middle of the curve.
- Move it downward slightly to reduce blue.
- Check neutral areas and reduce the adjustment if skin or other colors become inaccurate.
Make small changes. A channel curve can alter both brightness and color because the channel contributes to the final RGB value.
Common errors and safer choices
- Crushed shadows: Moving the shadow point too far down turns detail into solid black. Watch the histogram and inspect dark areas at 100% zoom.
- Clipped highlights: Moving the highlight point too far up removes texture from bright areas.
- Global overcorrection: A curve that looks dramatic at first may make the image harsh. Lower the adjustment layer’s opacity instead of immediately reshaping every point.
- Unwanted color shifts: Work on the composite channel when you only need contrast. Use individual channels only when correcting color or deliberately grading the image.
- Too many points: Extra points make the curve difficult to predict. Start with two or three points and add another only when a specific tonal range needs protection.
Use the adjustment layer’s visibility icon to compare the result with the original. Because the adjustment remains separate from the image layer, you can reopen the Properties panel, move points, change opacity, or remove the layer without permanently changing the pixels.
Exercise
An image has dull contrast, but its middle tones already look correct. What Curves adjustment should you try first?
Show answer
Add a small S-curve: move a shadow point slightly below the diagonal and a highlight point slightly above it, while keeping the midpoint near the diagonal.