Skip to content

Levels and Curves Explained: Fix Exposure and Contrast Like a Pro

Levels and Curves are the two tools professionals reach for first when a photo looks flat, dark or tinted. Both do the same basic thing, remapping input brightness to output brightness, but at different levels of control. This guide explains how to read the histogram they are built on, what each control does to the pixels, and how to use both on adjustment layers so every change stays reversible.

A market square under church spires: the left half is a deliberately flat, hazy copy with gray shadows and dull highlights; the right half has a Levels adjustment (black point 48, white point 205) and shows deep shadows, bright whites and richer color.

Reading the histogram

A histogram is a bar chart of brightness. The horizontal axis runs from pure black (0) on the left to pure white (255) on the right; the height at each point shows how many pixels have that value. It says nothing about where those pixels are, only how many there are of each tone.

  • A gap at either end means the photo never reaches true black or true white. It will look flat or hazy. This is the most common and easiest thing to fix.
  • A spike jammed against an edge means clipping: many pixels are stuck at pure black or pure white, and any detail they once held is gone. Editing cannot bring it back.
  • Most of the data on the left means a dark (low-key) image, most on the right a bright (high-key) one. Neither is wrong by itself. A snowy landscape should lean right; a candle-lit room should lean left.

In Photoyam you can keep a live histogram open with Window › Histogram (or its icon in the panel rail on the right of the Pro editor). The Levels and Curves controls also draw the histogram of the image below the adjustment directly behind them, whether you edit an adjustment layer in the Properties panel or use one of the Image › Adjustments dialogs.

What Levels and Curves actually do

Both tools are a lookup table: for each of the 256 possible input values, they define an output value. Every pixel is looked up and replaced. Nothing is added or detected; the same input brightness always becomes the same output brightness, wherever it sits in the frame.

Levels describes that table with five numbers. Input Black and Input White choose which input values become pure black and pure white; everything between is stretched to fill the gap. Gamma bends the middle of the range: values above 1 brighten the midtones, values below 1 darken them, and the end points do not move. Output Black and Output White compress the result back into a narrower range, for example to soften blacks for a matte look.

Curves draws the table as a line on a graph, input along the bottom and output up the side. A straight diagonal changes nothing. Raise a point and those tones get brighter; lower it and they get darker. Where the line is steeper than the diagonal, contrast increases in that tonal range; where it is flatter, contrast decreases. That one rule explains almost everything Curves can do.

Levels step by step

  1. Create a Levels adjustment layer. Choose Layer › New Adjustment Layer › Levels, or click the half-circle New adjustment layer button at the bottom of the Layers panel and pick Levels. A Levels layer appears above the active layer and its controls open right in the Properties panel: a Preset menu, the Channel menu, three eyedroppers, Auto, the histogram with three triangles under it, and the Output Levels ramp. The original pixels are not changed.
  2. Set the black point. Drag the left (black) triangle under the histogram, or type a value in the Input Black field, right until it meets the first real data on the left. Shadows get deeper and the image gains punch.
  3. Set the white point. Drag the right triangle (Input White) left to where the data starts on the right. Stop at the edge of the data; going further clips highlights.
  4. Adjust the midtones. Drag the middle (gray) triangle, or type in the Gamma field, until the overall brightness looks right. This is how you brighten a dark photo without blowing out the sky.
  5. Try Auto as a reference. Auto stretches the current channel between its darkest and brightest values, ignoring the most extreme 0.1% of pixels. It is a good starting point; compare it with your manual setting and keep whichever looks more natural.
  6. There is nothing to confirm. Every change shows on the canvas as you make it and goes into the History panel, so Ctrl+Z steps back one change at a time. Select the layer again later and the same controls reappear in Properties; Reset returns them to their defaults.
A Levels adjustment layer selected in the Photoyam Pro editor over a hazy market photo. The Properties panel shows the histogram, the black, gray and white input triangles moved in to 48, 1.05 and 205, and the Output Levels ramp at 0 and 255; the Layers panel lists Levels above the photo.
A Levels adjustment layer edited in the Properties panel. The triangles under the histogram set Input Black, Gamma and Input White; the ramp below sets the Output Levels.

The quick, permanent version: Image › Adjustments › Levels…

Image › Adjustments › Levels… (Ctrl+L) offers exactly the same controls in a dialog, but like the same menu command in Photoshop, it changes the active layer’s pixels. The canvas previews the result while the dialog is open; untick Preview to compare with the original, click Cancel (or press Esc) to leave the layer untouched, or OK to apply it as one History step. Use it for a final, simple fix; use the adjustment layer when you may want to change your mind. While the dialog is open the rest of the Pro editor waits for it: a click outside makes it give a brief shake rather than doing nothing silently. On a phone it opens as a sheet from the bottom with the histogram and its sliders at the top, above the other controls.

Fixing color casts per channel

A color photo is three grayscale images, red, green and blue, stacked together. A color cast means the channels are out of balance: in a blue-tinted shade photo the blue channel is brighter than it should be, especially in the highlights.

Change the Channel menu from RGB to Red, Green or Blue and the histogram and triangles apply to that channel only. Set the black and white points of each channel to the edges of its own data, and each channel then spans the full range, which often neutralizes a cast by itself. To warm a cold image by hand, choose Blue and pull Gamma below 1 (less blue in the midtones means more yellow), or choose Red and raise it.

The fastest method when the photo contains something that should be neutral, such as a gray sidewalk, white paper or a white shirt in shade, is the Set gray point eyedropper, in either Levels or Curves: click that object and each color channel is adjusted so the red, green and blue values of that spot become equal, which makes it neutral gray without changing its brightness. In Levels it sets the per-channel gamma; in Curves it bends each channel’s curve. If the result looks wrong, you probably clicked something that was not truly neutral; click a different spot.

Curves and the S-curve

Choose Layer › New Adjustment Layer › Curves (or Curves from the half-circle button in the Layers panel) to add a Curves adjustment layer and edit it in the Properties panel. For a direct, permanent change use Image › Adjustments › Curves… (Ctrl+M) instead, which opens the same editor in a dialog with Preview, Cancel and OK. Either way, click the line to add a point and drag a point to move it. A press right at the left or right edge of the graph works too, and a press near an existing point picks that point up (the reach is wider for a finger than for a mouse). On a phone the square graph comes first in the sheet, whole above Cancel and OK. To remove a point, drag it off the graph, or select it and press Delete (double-clicking it works too). The Input and Output fields show exactly where the selected point sits, and you can type into them.

The classic S-curve

Add a point about a quarter of the way up the line (the shadows) and pull it slightly down; add another about three quarters up (the highlights) and pull it slightly up. The curve becomes a gentle S. It is steeper in the middle, so midtone contrast rises, and flatter at the ends, so shadows and highlights are compressed rather than clipped. This is why an S-curve looks richer than simply dragging a contrast slider. The Increase Contrast preset in the Preset menu is a ready-made mild S-curve to start from.

Other useful shapes

  • Brighten midtones only: one point in the middle, pulled up. This is the Curves equivalent of Levels gamma, and the Lighten preset.
  • Matte, faded blacks: drag the bottom-left endpoint straight up. The darkest tone becomes dark gray.
  • Protect highlights: add points in the upper part of the line and keep them on the diagonal before brightening lower tones, so the sky does not move.

The Curves editor also offers Smooth (a spline through the points) and Corner (straight segments) interpolation, per-channel curves in the Channel menu, and an Auto button whose options include Enhance Monochromatic Contrast, Enhance Per Channel Contrast, Find Dark & Light Colors and Enhance Brightness And Contrast, with adjustable shadow and highlight clip percentages.

The Curves dialog in Photoyam over a market photo, showing a gentle S-curve with two points over the histogram (Input 197, Output 222 for the selected point), the Preset set to Custom, Preview ticked, and Cancel and OK at the bottom.
A gentle S-curve in the Curves dialog (Image › Adjustments › Curves…). The canvas behind it shows the result live; OK applies it to the pixels, Cancel leaves them as they were.

Why adjustment layers matter

When Levels or Curves lives on an adjustment layer, the lookup is applied live when the image is drawn, and the pixels underneath never change. That is the main reason to prefer Layer › New Adjustment Layer over Image › Adjustments for anything you might revisit. It gives you several practical advantages:

  • Re-edit any time. Select the layer and change its settings directly in the Properties panel, even after saving and reopening a Photoyam project (.psy).
  • Dial it back. Lower the adjustment layer’s opacity to reduce the effect evenly.
  • Apply it locally. Add a layer mask with the Add layer mask button and paint black where the adjustment should not apply, for example to brighten a face without brightening the background.
  • Compare before and after. Click the eye icon next to the layer in the Layers panel to toggle the adjustment off and on. It is the most honest way to check whether a correction actually helped.

An adjustment layer affects every visible layer below it. Stack them in a sensible order, usually tone first and color second.

Common mistakes

  • Clipping to gain contrast. Dragging the black and white points past the edge of the data throws detail away. Stop at the edge.
  • Extreme curve points. A curve that goes flat or turns back on itself produces posterized bands and odd colors. Keep curves gentle.
  • Trusting Auto blindly. Auto assumes the photo should span the full range. A sunset or a misty morning often should not.
  • Gray point on a colored object. Clicking beige skin or a cream wall with the gray eyedropper creates a cast instead of removing one.
  • Judging on an uncalibrated or very dim screen. Check the histogram, not only your eyes.

Try it in Photoyam

Open a photo, add a Levels or Curves adjustment layer, and fix exposure and contrast without touching the original pixels. Free, no sign-up, and your photos never leave your device.

FAQ

Should I use Levels or Curves?

Use Levels for the quick, common fixes: setting black and white points and brightening or darkening midtones. Use Curves when you need control over a specific tonal range, such as adding contrast only in the midtones or protecting highlights. Anything Levels does, Curves can also do.

Is there a perfect histogram shape?

No. A snow scene should lean right and a night scene should lean left. What matters is whether the photo uses the tonal range it needs, and whether important detail is clipped against either edge.

Why did my colors shift when I added contrast?

A steeper curve on the composite RGB channel also increases saturation, because it pushes the red, green and blue values of each pixel further apart. Lower the adjustment layer's opacity or reduce the curve's steepness if skin or skies become too intense.

Can I change a Levels or Curves adjustment later?

Yes, if you added it as an adjustment layer (Layer › New Adjustment Layer › Levels or Curves, or the half-circle button in the Layers panel). Select the layer and its controls appear in the Properties panel, ready to change; hide or delete the layer to remove the effect entirely. Image › Adjustments › Levels… and Curves… change the pixels directly when you click OK, so those can only be taken back with Undo.