Skip to content
Tutorials Center
My learning

Topics

Lesson 16 of 37 ยท Retouching and Adjustments

Brightness, Contrast, Levels and Curves

Fix dark, flat or washed-out photos with the histogram, Brightness/Contrast, Levels and Curves, and see the maths of tone adjustments in runnable stand-ins.

Most photographs need a tone adjustment before anything else: they look too dark, too bright or flat. Photoshop has several tools for it, from the one-slider Brightness/Contrast to the precise Levels and the most powerful Curves. They all do the same thing at heart: they remap each pixel's brightness value to a new one. Once you see that, the dialogs stop being mysterious.

Photoshop is not available on this site, so follow the steps in your own copy. The stand-ins implement the underlying tone mapping so that you can try the numbers.

The histogram

The histogram is a bar chart of how many pixels exist at each brightness, from black (0) on the left to white (255) on the right. Open Window > Histogram. Reading it takes seconds:

  • Bars bunched on the left mean a dark image; bunched on the right, a bright one.
  • Bars that do not reach the left or right edges mean there is no true black or white: the image is flat or low-contrast.
  • A tall spike touching an edge means clipping: detail is lost to pure black or pure white.

You can view the histogram for the whole composite (RGB) or for each colour channel. A good general-purpose photo uses most of the range without large clipped spikes, but there are exceptions: a night scene can legitimately sit on the left.

Read the histogram

Left heavy Dark image. Shadows may be crushed.
Right heavy Bright image. Highlights may clip.
Narrow Flat image. Needs contrast.
Full range Black to white. Usually balanced.

A guide, not a rule.

1 / 2

Brightness/Contrast

Image > Adjustments > Brightness/Contrast (better as an adjustment layer) has two sliders. It is quick for rough fixes, but it is blunt: Brightness shifts everything and Contrast stretches around the middle, and both can clip. Use it for quick work, and use Levels or Curves when you want control. Tick Use Legacy only if you need the old behaviour.

Levels

Levels (Ctrl/Cmd + L, or as an adjustment layer) has three input sliders under the histogram and two output sliders:

  • Black point (left input slider): any value at or below it becomes pure black.
  • White point (right input slider): any value at or above it becomes pure white.
  • Midtone slider (middle, gamma): moves the middle brightness lighter (drag left) or darker (right) without moving the ends.
  • Output Levels: the two lower sliders limit the final range, for example making blacks into dark grey for a faded look.

The standard recipe: drag the black point to where the histogram starts and the white point to where it ends. This stretches the image to use the full range, removing flatness. Then adjust the midtone slider for overall brightness. The three eyedroppers on the left of the dialog set black, grey and white points by clicking on the picture (hold Alt/Option while dragging the black or white slider to see a clipping preview).

The Levels formula for one channel, with all values scaled to 0-1, is: first stretch with the black and white points, then apply the gamma power.

JS Stand-in: Levels

Press Run (or Ctrl + Enter) to see the console output here.

No output.

You can see the flat range of 60 to 200 stretching to nearly 0 to 255. A gamma of 1.4 lifts the midtones without moving black and white, and an output range of 20 to 235 brings back a deliberate "faded" look. The exact formula in Photoshop may differ in detail, but the idea is the same.

Curves

Curves (Ctrl/Cmd + M) is the most flexible tone tool. It shows a diagonal line on a grid. The horizontal axis is the input brightness and the vertical axis is the output. A straight diagonal means no change. You click on the line to add points and drag them:

  • Drag a point up to brighten that tonal range, down to darken it.
  • A gentle S-curve (shadows pulled down, highlights pulled up) adds contrast.
  • An inverted S reduces contrast.
  • Pulling the black end up and the white end down gives the faded matte look.
  • Pin the points you want to keep still by clicking on the curve first.

Tips: click the On-image adjustment tool (the hand icon) and drag directly on the part of the picture you want to change; Photoshop adds the right point. Choose a channel (Red, Green, Blue) from the menu to colour-grade (an S-curve in the blue channel changes the colour balance). Use Presets for ready-made curves such as Increase Contrast. Shift-click points to select several, and use the arrow keys to nudge a selected point.

A curve is simply a function: input in, output out. The next stand-in builds one from control points by linear interpolation (Photoshop uses smooth splines, but linear is easier to read).

JS Stand-in: a curve from control points

Press Run (or Ctrl + Enter) to see the console output here.

No output.

The S-curve pushes 64 down to 48 and 192 up to 208, so darks get darker and lights lighter, while 0 and 255 and (nearly) the mid value 128 stay put. The fade curve lifts black to 30 and drops white to 225, which flattens the contrast.

Which tool when?

Goal Tool
Quick rough fix Brightness/Contrast
Fix flat image, set black and white points Levels
Fine control of shadows, midtones and highlights, colour grading Curves
Recover very dark or bright areas Shadows/Highlights, or Camera Raw
Auto fix as starting point Image > Auto Tone, Auto Contrast, Auto Color

Image > Auto Tone sets black and white points per channel (which can shift colours); Auto Contrast does it without colour change. Use them as a starting point on an adjustment layer, not as the final answer.

Applying Levels or Curves directly (Image > Adjustments) edits the pixels permanently. Use adjustment layers instead, explained in the next lessons, so you can change them later.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. A histogram that does not reach either edge indicates what?

    Gaps at the ends mean the tonal range is not fully used.
  2. 2. Which Levels slider brightens or darkens the midtones without changing black and white?

    The middle input slider is the gamma control for midtones.
  3. 3. What does a typical S-curve in Curves do?

    Pulling the lower half down and the upper half up steepens the middle of the curve, boosting contrast.
  4. 4. Why use an adjustment layer for Levels or Curves instead of Image > Adjustments?

    An adjustment layer stores the settings separately from the pixels.

Summary

  • The histogram shows tonal distribution and warns about clipping.
  • Levels sets black, white and midtone (gamma); Curves remaps any tonal range with points.
  • An S-curve adds contrast; lifting the black end makes a faded look.
  • Auto Tone, Auto Contrast and Auto Color are starting points only.
  • Use adjustment layers so changes stay editable.

Next: Colour Correction: Hue, Saturation and Colour Balance