Sub topic 7
Applying Smart Filters
This chapter assumes you know the Layers panel, layer masks, and how to run a filter from the Filter menu. It also assumes you have read the earlier chapters on what a smart object is and how to create one.
What a smart filter is
A smart filter is an ordinary filter applied to a smart object layer. Photoshop does not change the pixels. It stores the filter's name and settings, and it re-runs the filter on the smart object's original data whenever it needs to draw the layer.
On a normal pixel layer, a filter such as Gaussian Blur overwrites the pixels. The only way back is Undo or the History panel, and both are limited. On a smart object, the same filter becomes a live, editable entry that you can change, hide, reorder, or delete at any time.
Smart filters have three benefits:
- The original pixels stay untouched.
- Settings stay editable. You can reopen a filter dialog and change a value days later.
- Each filter comes with a mask and blending options (covered in later chapters).
Recognizing smart filters in the Layers panel
When you apply a filter to a smart object, the Layers panel changes under that layer:
- A row named Smart Filters appears, with a white mask thumbnail beside it.
- Each applied filter is listed below that row by name, with an eye icon.
- A small icon at the right of each filter row opens its blending options.
The mask on the Smart Filters row applies to all filters in the stack together. A pixel layer never shows these rows.
Applying a smart filter
There are two common routes.
Route 1: Convert first, then filter
- Select the layer in the Layers panel.
- Choose Filter > Convert for Smart Filters. This is the same as converting the layer to a smart object.
- Choose a filter, for example Filter > Blur > Gaussian Blur.
- Set the options in the dialog and click OK.
Route 2: Filter directly
If you run a filter on a pixel layer without converting, Photoshop applies it destructively. Convert the layer to a smart object before you filter if you want to keep the original.
You can also script the conversion. This ExtendScript runs the Convert to Smart Object command on the selected layer or layers:
// Photoshop ExtendScript: convert the active layer(s) to a smart object
// (same as Layer > Smart Objects > Convert to Smart Object)
executeAction(stringIDToTypeID("newPlacedLayer"), undefined, DialogModes.NO);After this runs, any filter you apply to that layer is a smart filter.
Which filters work as smart filters
Most filters from the Filter menu can be applied as smart filters. This includes filters from the Filter Gallery, Liquify, and Camera Raw Filter. Adjustments from the Image > Adjustments menu are different. Shadows/Highlights and Variations-style adjustments may work, but most Image > Adjustments commands are destructive. The non-destructive way to adjust is an adjustment layer.
A few filters cannot run as smart filters at all. Photoshop greys these out for smart objects. The list changes between versions, so check the Filter menu in your version. Later chapters cover the limits and when to rasterize.
Stacking filters
You can apply several filters to one smart object. Photoshop lists them with the most recent on top and renders them from the bottom up. The order matters.
For example, sharpening and then blurring gives a different result from blurring and then sharpening. The table shows the idea.
| Order | Effect |
|---|---|
| Blur, then sharpen | The sharpen step amplifies the softened edges, which can bring back crisp edges and exaggerate noise |
| Sharpen, then blur | The blur softens the sharpened edges, so the sharpening is partly lost |
Treat the stack as a recipe. Changing the order changes the result.
Editing a smart filter later
To change a setting, double-click the filter's name in the Layers panel. Its original dialog opens with the values you used. Change them and click OK. Photoshop re-renders the stack from the original data.
Because it always re-renders from the original, you can edit a filter ten times with no cumulative loss. A destructive filter on pixels compounds each pass.
Hiding and removing
- Click the eye icon beside a single filter to turn it off. Click again to turn it back on.
- Click the eye beside the Smart Filters row to toggle all filters on that layer.
- Drag a filter to the trash icon, or select it and press Delete, to remove it.
Use the eye toggle to compare before and after. It costs nothing, and the settings are kept.
A worked example
You have a portrait and want to soften the background noise without losing the original. The steps below use only constructs from this chapter.
- Select the photo layer and choose Filter > Convert for Smart Filters.
- Choose Filter > Noise > Reduce Noise (or Median for a quick test) and set a moderate value.
- Choose Filter > Sharpen > Unsharp Mask and apply a light amount.
- Toggle each eye icon to check what each filter contributes.
- Double-click Reduce Noise and lower the strength. The sharpen step is recalculated on top of the new result.
- Save the file as PSD or TIFF so the smart filter stack is kept.
Saving to JPEG flattens the file, and the stack is lost. Keep a layered master.
Common errors
- The filter is greyed out. The layer may be a type of layer the filter does not support, or the color mode or bit depth may not allow it. Check the mode under Image > Mode.
- The filter changed pixels permanently. The layer was not a smart object when you applied it. Undo, convert, and reapply.
- The effect looks different after reordering. Filters are order-dependent. Move it back, or adjust its values.
- The file is large. Each smart filter adds stored data. Remove filters you no longer need, and see the performance chapter.
- Edits to the smart object contents lose filters. They should not. Filters belong to the layer in the parent document, so they persist when you edit the contents and save.
Opening the contents
Smart filters apply to the smart object layer from outside. To change the smart object's own pixels, open its contents. This ExtendScript opens the contents of the active smart object for editing:
// Photoshop ExtendScript: open the contents of the active smart object layer for editing
// (same as Layer > Smart Objects > Edit Contents)
executeAction(stringIDToTypeID("placedLayerEditContents"), undefined, DialogModes.NO);When you save and close that document, the parent updates, and the smart filters re-render over the new contents.
Exercise
You applied Gaussian Blur and then Unsharp Mask to a smart object. You decide the blur is too strong, but you want to keep the sharpening. What do you do, and why is the original image safe?
Show answer
Double-click Gaussian Blur in the Smart Filters list under the layer, lower the radius, and click OK. Unsharp Mask stays in the stack and Photoshop re-renders it on the new blur result. The original is safe because smart filters store only settings and are re-run on the unchanged original smart object data each time.
Exercise
You applied a filter to a layer, and the Layers panel shows no "Smart Filters" row under it. What happened, and how do you fix it?
Show answer
The layer was a normal pixel layer, so the filter changed the pixels directly. Undo the filter, choose Filter > Convert for Smart Filters, and apply the filter again.