Skip to content
Study Hall
Lesson 6 of 7Graphic Design
Unit 1 · Lesson 6 of 7

Image Editing: Layers, Masks and Retouching

How professionals edit photographs without destroying the original: selections, masks and adjustment layers, reading a histogram, cloning and healing, and where retouching stops being honest.

5 min read10 practice questionsAsk AI about this →

Key things to remember

  1. 1Non-destructive editing keeps the original pixels: corrections on adjustment layers, hiding on masks, retouching on an empty layer.
  2. 2On a layer mask, white reveals, black conceals and grey partly shows.
  3. 3A histogram plots how many pixels sit at each brightness from 0 (black) to 255 (white); spikes at the edges mean clipped, unrecoverable detail.
  4. 4Levels remaps tones:
  5. 5The clone stamp copies pixels exactly; the healing brush copies texture and blends it into the surrounding colour and brightness.
  6. 6News photos may be corrected for exposure, colour and crop but nothing may be added, removed or moved; ads may be retouched but must not mislead.

Almost no photograph you see in a magazine, an ad or a portfolio is exactly what came out of the camera. Exposure is corrected, colours balanced, dust removed, sometimes whole skies replaced. The skill is not just knowing which tool does what; it is working so that every change can be undone or adjusted tomorrow, when the client asks for 'a bit less'. And because editing is now so easy and so convincing, every editor also has to know when a change stops being a correction and becomes a lie.

Layers and non-destructive editing

Layer stack — the top layer draws lastGradethe look, applied over everythingForegroundthings that pass in frontSubject (keyed)carries the alpha matteBackground platethe bottom of the stackComposited resultMatte (the alpha channel)white (alpha 1) = keep pixelblack (alpha 0) = drop pixelgrey = partial, for soft edgesKeying does not cut the subject out — it writes a matte that tells the compositor whichpixels of that layer to draw over the layers beneath it.
Fig 1Layers stack from the back forward, and a mask on each one decides which of its pixels show through.

A layer is a separate sheet stacked over the image. Editing directly on the photograph's pixels is destructive: once you brighten, erase or paint and then save, the original pixels are gone. Non-destructive editing keeps the original untouched and stores each change as something you can switch off, weaken or redo. In practice that means three habits: corrections go on adjustment layers, hiding goes on layer masks, and retouching goes on a new empty layer above the photo.

ADestructive
  • Brightness applied straight to the pixels
  • Eraser used to remove a background
  • Clone stamp painted onto the original photo
  • One version; every change is permanent after saving
BNon-destructive
  • A Levels or Curves adjustment layer, adjustable at any time
  • A layer mask that hides the background and can be repainted
  • Cloning onto an empty layer set to sample all layers
  • The original survives; any step can be changed or removed

Selections and masks

Selection toolHow it decidesBest for
MarqueeA rectangle or ellipse you drawSimple geometric areas
Lasso / polygonal lassoThe outline you trace by handRough selections and straight-edged objects
Magic wand / colour rangePixels similar in colour to the one you clickPlain skies or backdrops
Quick selection / select subjectEdge detection, increasingly with machine learningA clear subject against a different background
Pen tool pathA vector outline you build with anchorsHard-edged products, where a crisp edge matters most

A selection is temporary; a layer mask turns it into something permanent but editable. A mask is a greyscale image attached to a layer: white reveals, black conceals, and grey partly shows. Because it is just paint, you can fix a bad edge by painting with a soft black or white brush instead of starting the selection again. Hair and fur are the hard cases, which is why programs have a 'refine edge' or 'select and mask' step that detects fine strands, and why a slightly feathered (softened) edge usually looks more natural than a razor-sharp cut-out.

Reading a histogram: Levels and Curves

A histogram is a bar graph of the image's tones. In an 8-bit image the horizontal axis runs from 0 (pure black) on the left to 255 (pure white) on the right, and the height at each value is how many pixels have that brightness. A histogram bunched to the left means a dark, underexposed image; bunched to the right, overexposed; squeezed into the middle, flat and low in contrast. A tall spike against either edge is clipping: detail lost to pure black or white, which no adjustment can bring back. The Levels adjustment moves the black point and white point inward to the edges of the data, stretching the tones to fill the full range.

How Levels remaps a pixel when the black and white points are moved (midtone slider left at its default).

Retouching: clone and heal

ToolHow it worksUse it for
Clone stampCopies pixels exactly from a sampled source pointRebuilding edges and patterns, where texture and colour must match exactly
Healing brushCopies texture from the source, then blends it into the colour and brightness around the targetBlemishes, wrinkles in fabric, marks on skin
Spot healingLike the healing brush, but picks the source automaticallyDust spots and small specks
Content-aware fillAnalyses the surroundings and synthesises new pixelsRemoving larger objects from varied backgrounds

The ethics of retouching

Whether an edit is acceptable depends on what the viewer has been promised. News and documentary photographs promise that this is what happened. Major news agencies such as The Canadian Press and the Associated Press allow normal adjustments of exposure, colour and cropping, but forbid adding, removing or moving anything in the frame. Advertising and fashion images are understood to be constructed, so retouching is normal, but there are limits. Canada's Competition Act prohibits materially false or misleading advertising, so an ad that digitally exaggerates what a product does, such as lashes lengthened in editing for a mascara, risks breaking it. Since 2017, France has required commercial photos in which a model's body shape was altered to carry the label 'photographie retouchée'. Dove's 2006 'Evolution' campaign, made in Toronto, became famous for showing exactly how much a billboard face is changed.

A test for any edit
Ask: if the viewer knew exactly what was changed, would they feel deceived? Removing a dust spot from a landscape fails no one. Removing a person from a news photo, or slimming a model's waist in an ad that claims to show a product's real effect, deceives the viewer about the very thing the image is there to show.

Worked examples

Reveal one step at a time and try to beat it to the next line.

Example 1
A photo of a school concert looks grey and flat. Its histogram has no pixels below 30 or above 220. Correct it with Levels, and find where a pixel of brightness 125 ends up.
Example 2
Remove a power line that crosses a blue sky and the edge of a brick roof, without damaging the original photo.
Example 3
Replace the dull white sky in a photo of the CN Tower with a blue sky from another photo, keeping everything editable.
Example 4
Decide whether each edit is acceptable: (a) a newspaper removes a distracting sign from a protest photo, (b) a skin-care ad smooths wrinkles on the model's face, (c) a yearbook portrait has a temporary pimple removed.

Where marks get lost

  • Using the eraser to remove a background, so a bad edge cannot be fixed without starting again. Use a layer mask.
  • Applying brightness or contrast straight to the photo instead of on an adjustment layer.
  • Pushing Levels or Curves so far that the histogram piles up at 0 or 255, clipping detail that cannot be recovered.
  • Using the healing brush along a hard edge, where its colour blending smears the edge. Use the clone stamp there.
  • Cloning from the same source point over and over, leaving obvious repeated patterns in the texture.

Flashcards 9

Non-destructive editing
Adjustment layer
Layer mask
Feathering
+ 5 more

Practice

1
On a layer mask, what does painting with black do?
2
A histogram is bunched against the left side with almost nothing on the right. What does this tell you?
3
In Levels, the black point is moved to 30 and the white point to 230. What output value does a pixel with input brightness 100 get? Round to the nearest whole number.
4
An 8-bit channel records brightness as a whole number from 0 to 255. How many different brightness levels is that?
5
What kind of layer applies a correction such as Levels or Curves without changing the pixels beneath it?
6
Which retouching tool copies pixels exactly from a sampled point, with no blending?
7
A news photographer removes a stray coffee cup from the corner of a photo of a politician's speech. According to news-agency standards, this is…
8
Why use a healing brush rather than a clone stamp on a blemish on someone's cheek?
9
Put this non-destructive editing workflow in order.
  1. 1Export a flattened copy, keeping the layered master
  2. 2Retouch dust and blemishes on a new empty layer
  3. 3Correct colour with a colour balance adjustment layer
  4. 4Duplicate or protect the original image layer
  5. 5Correct exposure and contrast with a Levels adjustment layer
10
Match each selection method to what it is best for.
Magic wand
Pen tool path
Marquee
Select and mask / refine edge

Spot a mistake on this page? Let us know