Sub topic 2
Setting up a non-destructive retouching layer
Before you remove anything, decide where the repair pixels will go. If you paint straight onto your photo layer, every stroke permanently overwrites the original. A separate retouching layer keeps the original intact, lets you hide or soften any repair, and lets you erase one mistake without undoing everything after it.
This chapter assumes you can open images, zoom and pan, find the Layers panel, and set tool options in the Options bar. It covers how to build the layer, how the tools write to it, the stack order that avoids surprises, and the situations where the setup fails.
Why destructive retouching causes problems
Both the Spot Healing Brush and the Remove tool normally write their results into the pixels of the active layer. On a Background layer or a plain pixel layer, that means:
- The original pixels under the stroke are gone once you save and close. History states only last for the current session.
- You cannot lower the strength of a repair afterward. It is all or nothing.
- You cannot compare before and after without stepping through History.
- A bad repair you notice an hour later cannot be removed without also undoing everything you did in between.
A retouching layer fixes all four. The repair pixels live on their own layer, so the original stays untouched underneath.
The two ways to build a retouching layer
There are two common approaches. They behave differently, and the right choice depends on file size and the type of layer you are starting from.
| Approach | How you make it | Strengths | Drawbacks |
|---|---|---|---|
| Empty layer with Sample All Layers | New blank layer above the photo, with **Sample All Layers** turned on | Small file size. The layer holds only the repaired pixels. Works above Smart Objects. | The result depends on the visible layers below it. If you change them later, the repair may no longer match. |
| Duplicate layer | Duplicate the photo layer and retouch the copy | Simple. No special option needed. The copy is self-contained. | The file size roughly doubles per copy. The repair is mixed into a full copy of the photo, so you cannot easily fade only the repair. |
For most removal work, the empty layer is the better default. The rest of this chapter focuses on it and returns to duplication where it matters.
Creating the empty retouching layer
- Open your image and look at the Layers panel. Click the layer that holds the photo so the new layer is created directly above it.
- Click the Create a new layer button at the bottom of the Layers panel. You can also choose Layer > New > Layer, or press Shift+Ctrl+N (Windows) or Shift+Cmd+N (macOS) to get a naming dialog.
- Name the layer something specific, such as
Retouch - remove. Names matter later, when a file has several retouching layers or is handed to someone else. - Confirm the new layer is highlighted in the Layers panel. Also confirm that the pixel thumbnail is selected, not a layer mask thumbnail (a layer mask is a grayscale thumbnail on the layer that hides or shows its pixels). If a mask is active, brush strokes edit the mask instead of creating repair pixels.
The new layer is transparent, so the image looks unchanged. That is expected. The retouching tools will fill it with repair pixels as you paint.
Telling the tools to sample from the layers below
An empty layer has nothing to sample from. Both tools therefore need to be told to look at the layers beneath, not only the active one.
- Select the Spot Healing Brush or the Remove tool in the toolbar.
- In the Options bar, turn on Sample All Layers.
- Paint a stroke over a test blemish or object.
The tool reads the visible, composited image from all layers, works out a fill, and writes only the result to the active empty layer. The photo layer stays untouched.
You can verify this immediately. Hide the retouching layer by clicking its eye icon, and the original object comes back. Alt-click (Windows) or Option-click (macOS) the eye icon to show only that layer. You should then see just the repair patches against a transparent checkerboard.
How the layer stack should look
Order matters, because Sample All Layers reads whatever is visible at that moment. A good basic stack looks like this, from top to bottom:
Some practical rules follow from this stack:
- Put the retouching layer directly above the photo. That keeps its repairs tied to the pixels they replace.
- Hide adjustment layers while you retouch. Sample All Layers reads the visible composite. If you are using a Curves, Hue/Saturation, or similar adjustment layer above the photo, the tool can sample the adjusted look and bake it into the repair. Later, when you change or remove the adjustment, the patch no longer matches. Turn adjustments off, retouch, then turn them on.
- Do not sample your own earlier repairs by accident. Because the retouching layer is part of the composite, a later stroke may sample a previous patch. This is useful when you are cleaning up the edge of a repair, and harmful when it spreads an earlier mistake. Keep this in mind in the multi-pass chapter.
Working on Smart Objects and raw files
If you open a raw file through Camera Raw as a Smart Object, or if you place an image as a Smart Object, the photo layer shows a small page icon in its thumbnail. Healing tools cannot paint directly onto a Smart Object, and Photoshop shows an error message if you try.
The empty-layer method avoids that problem. You never paint on the Smart Object. You paint on the new layer above it, and Sample All Layers reads from it. This is one of the strongest reasons to prefer an empty layer over rasterizing (converting the Smart Object to ordinary pixels, which discards its editable source data).
A duplicate layer also works, but you would have to rasterize the copy. That loses the Smart Object's editability on that copy.
Controlling how strong the repair is
Once repairs live on their own layer, you gain controls you did not have before:
- Opacity. Lower the layer's Opacity slider to blend the repair back into the original. At 70 percent, a slightly over-clean patch looks more natural, because some of the original texture shows through.
- Layer mask. Add a mask with the Add layer mask button, then paint with a soft black brush to hide only part of a repair. This lets you keep the good half of a patch and drop the bad half.
- Eraser. The Eraser tool also works on the retouching layer, but it is permanent for that layer's pixels. A mask is easier to reverse, so prefer it.
- Toggling. Click the eye icon to compare before and after in one click. Do this often.
Checking that nothing leaked into the photo layer
It is easy to paint on the wrong layer. Before you continue, run a quick check:
- Hide the retouching layer. The original blemish or object should reappear in full.
- Alt-click or Option-click the retouching layer's eye icon to isolate it. You should see only the repair patches.
- Zoom to 100 percent and scan the isolated layer. Stray marks away from your target are leftovers from earlier strokes.
If the original is changed when the retouching layer is hidden, you painted on the photo layer. Undo with Ctrl+Z or Cmd+Z, or step back in History, select the correct layer, and try again.
Edge cases and gotchas
Layer bounds. A retouching layer is the same size as the canvas when you create it. If you later enlarge the canvas, repairs that you want outside the old bounds need the layer to cover them. Make the layer after any canvas resize, not before.
Locked layers. If you lock transparent pixels on the retouching layer, using the lock icon in the Layers panel, new strokes cannot add pixels to empty areas. Leave transparency unlocked on this layer.
Sample All Layers is a per-tool setting. The option is stored with each tool. Turning it on for the Spot Healing Brush does not turn it on for the Remove tool, so set it for each tool you use.
Changing the photo underneath. An empty-layer repair is computed from the pixels that were visible at the moment you painted. If you later crop, sharpen, or paint on the photo layer, the repair does not recompute. Finish your tonal and structural changes on the photo layer first, or accept that you might need to redo some repairs.
File size. An empty retouching layer adds very little to the file. A duplicate adds a full image. On a high-resolution file with many layers, that difference affects save times and memory use.
Flattening. Saving as JPEG flattens the layers into one. Save a layered copy as a PSD or TIFF first if you want to keep the repairs adjustable.
A short workflow to follow
- Open the image and click the photo layer.
- Hide any adjustment layers above it.
- Create a new empty layer and name it.
- Select the Spot Healing Brush or Remove tool.
- Turn on Sample All Layers in the Options bar.
- Make sure the pixel thumbnail of the new layer is selected.
- Paint your repairs.
- Toggle the layer's eye icon to compare, then lower Opacity or add a mask if any repair looks too strong.
- Turn the adjustment layers back on and save as PSD or TIFF.
The next chapters build on this setup: brush size and hardness, then the two tools themselves.
Exercise
You paint a stroke with the Spot Healing Brush on a new empty layer above your photo. Nothing appears, and the layer thumbnail stays blank. List two things to check and what each one fixes.
Show answer
First, check that Sample All Layers is turned on in the Options bar. Without it, the tool samples only the empty active layer and has nothing to build a fill from. Second, check that the pixel thumbnail of the layer is selected rather than a layer mask. If a mask is active, the strokes edit the mask and no repair pixels are created. Also confirm that the layer is not locked for transparent pixels.
Exercise
A client sends a raw file that opened as a Smart Object, and the Spot Healing Brush shows an error when you click on the photo. Describe how to remove a blemish without rasterizing the Smart Object, and name one advantage over duplicating the layer.
Show answer
Create a new empty layer above the Smart Object, select the Spot Healing Brush, turn on Sample All Layers, and paint on the new layer. The tool reads from the Smart Object but writes only to the new layer, so the Smart Object stays editable. An advantage over duplicating is that the file stays small, because the new layer holds only the repair pixels, and the original Smart Object keeps its editable source data.
Exercise
After finishing repairs, you add a Curves adjustment layer above the retouching layer and brighten the shadows. Later you notice the patches look slightly lighter than the area around them. What probably happened, and how would you avoid it next time?
Show answer
The repairs were probably painted while the Curves layer was visible, so Sample All Layers read the adjusted (brightened) composite and baked that look into the patches. When the adjustment is later changed or applied to the whole image, the patches no longer match. To avoid this, hide adjustment layers before retouching, paint the repairs, then turn the adjustments back on.