Sub topic 2
Keeping edits reversible with Smart Objects and adjustment layers
This chapter covers the working model for non-destructive editing in Photoshop. Every shadow and reflection later in this tutorial depends on it. It assumes you can open and save documents, work with layers and layer opacity, and make selections. It also assumes you know the layer mask basics from the previous chapter: white reveals, black hides, gray partly hides.
What "non-destructive" means
A destructive edit changes pixels and keeps no record of the original. Painting on a photo layer, running a filter on it, or erasing part of it are destructive. After you save and close, you cannot recover the old pixels. Undo history does not survive closing the file.
A non-destructive edit keeps the original data and stores the change as a separate, editable instruction. You can adjust or remove the change at any time.
Shadows and reflections need this more than most work. You will rarely get the blur radius, opacity, or fade length right on the first try. After you place the subject on the final background, you often find the shadow is too dark or the reflection is too sharp. If the shadow is baked into pixels, you have to redo it. If it is a live layer with a mask, you change one value.
Four tools carry most of the non-destructive workflow:
| Tool | What it protects | What you can change later |
|---|---|---|
| Layer mask | Pixels hidden rather than erased | Repaint the mask to reveal or hide more |
| Smart Object | Original pixel data, transforms, and filters | Re-apply transforms, edit filter settings |
| Adjustment layer | Pixels below it | Curves, Levels, Hue/Saturation values |
| Smart Filter | The layer it is applied to | Radius, amount, mask, blend mode |
Smart Objects
A Smart Object is a layer that holds the source content, such as raster pixels or a vector file, inside a container. Photoshop shows the container as a layer with a small page icon in the thumbnail corner. Edits you make to the layer apply to a rendered view of the source. The source itself stays untouched.
Why this matters for resizing
Scaling a normal pixel layer down and then back up loses detail permanently. Photoshop discards pixels on the way down and invents them on the way up. A Smart Object remembers the original resolution. Each transform is recalculated from the source, so scaling to 20% and back to 100% returns the full-quality image.
This matters for reflections. You flip a duplicate of the subject, then often rescale, skew, or warp it to match the floor. With a Smart Object, you can redo those steps repeatedly without softening the result.
Converting a layer
- Select the layer in the Layers panel.
- Choose Layer > Smart Objects > Convert to Smart Object. You can also right-click the layer and choose the same command.
- Check for the Smart Object icon in the layer thumbnail.
Convert the cut-out subject before you duplicate it for the reflection. The duplicate then comes from a clean source.
Editing the contents
Double-click the Smart Object thumbnail to open its source in a separate tab. Make changes, such as retouching an edge, then save with Ctrl+S (Cmd+S on Mac) and close the tab. Photoshop updates every instance in the main document.
Linked copies versus new copies
Duplicating a Smart Object gives you two layers that share one source. Editing the source updates both. This is useful when the shadow and reflection are both derived from the subject, because a retouch fixes both at once.
If you want an independent copy, use Layer > Smart Objects > New Smart Object via Copy. Use this when the reflection needs different retouching from the subject.
Limits of Smart Objects
- You cannot paint, clone, or use the Brush directly on a Smart Object layer. Photoshop shows a message that the layer is not directly editable. Add a new empty layer above it, or edit the contents in the source tab.
- Pixel-level tools such as Dodge, Burn, and Healing Brush need a normal layer or a layer clipped above.
- Large embedded sources increase file size, especially with several independent copies.
- Perspective and Distort transforms work on Smart Objects. Content-aware commands and some adjustments that need pixel access do not.
A common error is trying to erase part of a Smart Object. Add a layer mask instead. Masks work on Smart Objects and stay editable.
Smart Filters
A filter applied to a Smart Object becomes a Smart Filter. It appears beneath the layer in the Layers panel, in a list called Smart Filters, and each filter has an eye icon, a double-click target for its settings, and a blend options control.
For shadow work, Gaussian Blur is the key example. Apply it as a Smart Filter and the blur radius stays editable. If the shadow looks too crisp next to the subject, double-click Gaussian Blur under the layer and raise the radius.
The Smart Filter list also has its own mask, shown as a white thumbnail next to the "Smart Filters" label. Painting black on that mask removes the filter effect in those areas. This is a quick way to keep a shadow sharp near the subject's feet and blurred farther away, though a gradient mask on the layer (covered later in this tutorial) gives more control.
To apply a filter as a Smart Filter, convert the layer first and then choose Filter > Blur > Gaussian Blur. If you apply the filter to a normal layer, it is permanent.
Adjustment layers
An adjustment layer is a layer that applies a color or tone correction to everything beneath it. It stores the settings and a built-in layer mask. It contains no pixels of its own.
Common adjustment layers include Curves, Levels, Hue/Saturation, Color Balance, and Brightness/Contrast. Create one from the half-black, half-white circle at the bottom of the Layers panel, or from Layer > New Adjustment Layer.
Affecting only one layer: clipping
By default an adjustment layer affects all layers below it. To limit it to one layer, clip it:
- Place the adjustment layer directly above the target layer.
- Right-click the adjustment layer and choose Create Clipping Mask. Alt-click (Option-click on Mac) the line between the two layers does the same.
A small arrow appears on the clipped layer. The adjustment now applies only to the layer below it, and only where that layer has visible pixels.
Clipping is how you color-match a reflection to a floor without changing the subject. Put a Curves layer above the reflection and clip it. The same approach tints a shadow layer toward blue or warms it.
Using the mask on an adjustment layer
Each adjustment layer has a mask that starts white (fully applied). Paint black to remove the effect in an area. Paint gray for a partial effect. A gradient from white to black on this mask makes a correction fade out gradually, which suits reflections that should lose contrast with distance.
Putting it together: a reversible stack
The following structure keeps a subject, its shadow, and its reflection editable. Layers are listed from top to bottom.
Curves (clipped to Reflection) - color match
Reflection (Smart Object, flipped) - with gradient layer mask
Shadow (pixel layer, Multiply) - with layer mask
Subject (Smart Object, masked cut-out)
BackgroundNothing in this stack alters the subject's source pixels. You can change the reflection's mask, the shadow's opacity, or the Curves values without redoing earlier steps.
Smart Objects and the scripting example
The scripting chapter later in this tutorial duplicates and flips the active layer. Be aware that resize on a Smart Object layer is applied as a transform, so it stays reversible by converting back or editing the source. Pixel-level methods such as applyGaussianBlur in ExtendScript fail on a Smart Object, because the layer is not directly editable. If a script errors on a layer, check whether it is a Smart Object. Rasterize it only when you have a reason to.
Common errors and how to avoid them
- Flattening too early. Merging layers or saving a flattened copy as your only file removes every editable setting. Keep a layered PSD or PSB as your working file and export JPEG or PNG separately.
- Rasterizing a Smart Object by accident. Commands such as Layer > Rasterize > Smart Object, or applying a pixel-only tool through a dialog that offers to rasterize, break the link to the source. If the prompt appears, cancel and use a mask or a new layer instead.
- Applying adjustments directly through Image > Adjustments. These change pixels permanently. Use the adjustment layer version of the same tool.
- Forgetting to clip. An unclipped adjustment layer recolors the whole image below it, including the background. If the whole scene changed after you adjusted a reflection, check for the missing clipping arrow.
- Erasing instead of masking. The Eraser deletes pixels. A mask hides them, and you can paint them back.
- Huge file sizes. Each independent Smart Object copy stores its own source. Use linked duplicates where the content is identical.
Quick checklist before you move on
- The cut-out subject is a Smart Object with a layer mask, not erased edges.
- Blurs on shadows and reflections are Smart Filters or sit on layers that can be redone from a source.
- Color corrections are adjustment layers, clipped where they should only affect one layer.
- You have a layered file saved separately from any exported image.
Exercise
You have converted a reflection layer to a Smart Object and added a Curves adjustment layer above it to darken the reflection. After applying it, the floor and the rest of the scene also darken. What went wrong, and how do you fix it without deleting anything?
Show answer
The Curves layer is not clipped, so it affects every layer below it. Right-click the Curves layer and choose Create Clipping Mask (or Alt/Option-click the line between the Curves layer and the reflection). A clipping arrow appears, and the adjustment then applies only to the reflection.
Exercise
You applied Gaussian Blur at 12 px to a shadow on a normal pixel layer, saved, and closed the file. The next day you decide the blur should be 20 px. Why is this hard, and what would you do differently next time?
Show answer
The blur was applied directly to the pixels, so only the blurred result exists. Photoshop has no record of the original sharp shadow or the 12 px setting. Next time, convert the shadow layer to a Smart Object before filtering, so Gaussian Blur appears as a Smart Filter and you can double-click it to change the radius to 20 px.
Exercise
You try to paint a soft brush stroke on a Smart Object layer to fix a rough edge and Photoshop refuses. Name two non-destructive ways to make the fix.
Show answer
Add a layer mask to the Smart Object and paint black or white on it to hide or reveal the edge. Alternatively, create a new empty pixel layer above and clip it to the Smart Object, then paint on that layer. You can also double-click the Smart Object to edit its source in a separate tab.