Sub topic 11
Masking smart filters
This chapter assumes you can create and paint a layer mask, you know how adjustment layer masks limit an effect, and you can open the Layers panel and the Filter menu. Here you apply the same black, white and gray logic to filters, so you can control where a filter acts and change its settings later.
What a smart filter is
A regular filter changes the pixels of a layer for good. A smart filter is a filter applied to a smart object. A smart object is a layer that stores the original image data inside a container, so Photoshop can re-run the filter at any time.
When you apply a filter to a smart object, Photoshop does three things:
- It lists the filter under the layer in a group called Smart Filters.
- It adds a white mask thumbnail next to that group.
- It keeps the filter's settings so you can reopen them by double-clicking the filter name.
That mask is the smart filter mask. It works like a layer mask, but it controls the filters instead of the layer's pixels.
Preparing a layer for smart filters
You must convert a layer to a smart object before applying filters, or the filters will bake in.
- Select the layer in the Layers panel.
- Choose Filter > Convert for Smart Filters. You can also right-click the layer and choose Convert to Smart Object.
- Apply a filter from the Filter menu, such as Filter > Blur > Gaussian Blur.
A small page icon appears in the corner of the layer thumbnail. That icon shows the layer is a smart object.
One mask for all filters
The smart filter mask is shared. It sits beside the Smart Filters group and applies to every filter in the stack.
- Painting black on the mask hides all the smart filters in that area.
- Painting white shows all of them.
- Painting gray shows them partially, in proportion to the gray value.
This is the main difference from a layer mask. A layer mask hides pixels of the layer. A smart filter mask hides the effect of the filters and always leaves the underlying layer visible.
Worked example: selective blur
Suppose you have a portrait and want a blurred background with a sharp subject.
- Convert the photo layer to a smart object with Filter > Convert for Smart Filters.
- Choose Filter > Blur > Gaussian Blur, set Radius to about 12 px, and click OK.
- Click the smart filter mask thumbnail so its corners show a highlight frame. This confirms the mask is active.
- Press D to reset the default colors, then press X if needed so black is the foreground color.
- Select the Brush tool (B) with a soft round brush, and paint over the subject. The blur disappears where you paint.
- If you hide too much, press X to switch to white and paint the blur back in.
Next, double-click the words Gaussian Blur under the layer. Change the radius to 25 px and click OK. The mask stays the same, and only the blur strength changes. A regular layer could not do this after you had painted.
Using a selection as the mask
You can start from a selection instead of painting by hand.
- Make a selection of the subject, for example with Select > Subject.
- Click the smart filter mask thumbnail.
- Fill the selection with black. Choose Edit > Fill, set Contents to Black, and click OK.
Fill with white instead if the selection should receive the filter. To reverse a mask later, click it and press Ctrl+I (Windows) or Cmd+I (Mac).
Per-filter controls: blend options
The mask is shared, but each filter has its own blend settings. Double-click the small sliders icon to the right of a filter name. The Blending Options dialog opens with two controls:
- Mode: how the filtered result blends with the layer, such as Normal, Multiply or Soft Light.
- Opacity: how strongly that single filter applies, from 0% to 100%.
Use these when one filter in the stack needs to be softer than the others. The mask cannot do that because it affects every filter equally.
| Control | Scope | Typical use |
|---|---|---|
| Smart filter mask | All filters in the stack | Keep a filter off the subject |
| Filter blending options | One filter | Soften a single filter or change its blend mode |
| Filter settings | One filter | Change radius, amount or other parameters |
| Eye icon beside a filter | One filter | Turn one filter on or off |
| Eye icon beside Smart Filters | All filters | Turn the whole stack on or off |
Handling more than one mask area
Because the mask is shared, you sometimes need separate masks for different filters. Two approaches work well.
Stack smart objects
Convert the layer, with its existing smart filters, into a new smart object. To do this, right-click it and choose Convert to Smart Object. The old filters and mask are now stored inside. You can add new filters, and a new, separate smart filter mask, on the outside. Double-click the thumbnail to open and edit the inner contents.
The cost is more layers and a bigger file. Nested smart objects also slow down heavy filters.
Duplicate the smart object
Duplicate the layer, apply a different filter to each copy, and give each copy its own layer mask. This is simple to follow in the Layers panel. It uses more memory than nested objects because each copy keeps its own data, unless you use New Smart Object via Copy, which makes an independent copy.
Disabling, deleting and moving the mask
The mask management tools you know from layer masks also work here, with small differences.
- Disable: Shift-click the smart filter mask thumbnail. A red X appears and the filters show everywhere.
- Delete: Right-click the mask and choose Delete Filter Mask. The filters stay but now apply everywhere.
- Add back: Choose Layer > Smart Filter > Add Filter Mask if the layer has none.
- Clear: Choose Layer > Smart Filter > Clear Filter Mask to remove the mask. Use Delete Smart Filters to remove the filters themselves.
Unlike a layer mask, a smart filter mask has no link icon. It cannot be unlinked from the smart object, so moving the layer always moves the mask with it.
You can also reorder filters by dragging them inside the Smart Filters group. The order matters. Sharpen then blur gives a different result from blur then sharpen.
Using Properties panel controls
Select the smart filter mask and open Window > Properties. You can use Density and Feather here, as with a layer mask.
- Density lowers the mask's strength so that black no longer hides the filter fully. At 70%, filters still show at about 30% in black areas.
- Feather softens the mask edge by a chosen number of pixels. This is helpful after a selection-based fill leaves a hard edge.
These settings are themselves non-destructive. You can return to 100% density or 0 px feather at any time.
Common problems
| Symptom | Likely cause | Fix |
|---|---|---|
| The filter menu is gray | The layer type does not support the filter, or the image is in an unsupported mode | Change mode, for example to 8-bit, or convert the layer to a smart object |
| Painting does nothing | The layer thumbnail, not the mask, is active | Click the mask thumbnail until its frame shows |
| Painting shows the wrong result | Foreground color is wrong | Reset with D, then press X to swap |
| The filter appears everywhere after editing | The mask was deleted or disabled | Check the red X, then re-enable or repaint |
| Editing is slow | A large stack of filters re-renders on every change | Turn off filters temporarily with their eye icons, or lower the preview quality |
| The mask moved away from the subject | You moved the layer contents inside the smart object | Open the object and align the subject, or repaint the mask |
Quick practice sequence
Try this on any photo to confirm each step.
- Convert the layer to a smart object.
- Apply Filter > Blur > Gaussian Blur at 20 px.
- Apply Filter > Noise > Add Noise at 4%.
- Paint black on the mask over one region and check that both effects disappear there.
- Open the Blending Options of Add Noise and set Opacity to 40%. The blur stays at full strength while the noise gets weaker.
- Shift-click the mask to disable it, and Shift-click again to restore it.
Exercise
You applied Gaussian Blur and Add Noise as smart filters, and you painted black on the smart filter mask over a face. You now want the face to keep the blur but lose the noise. Why does the mask alone not do this, and what can you do?
Show answer
The smart filter mask is shared by every filter in the stack, so painting black removes both effects in that area. To keep the blur on the face, use a separate approach. Either convert the layer to a smart object so the blur is stored inside and add Add Noise outside with its own mask, or duplicate the smart object so each filter lives on its own copy with its own layer mask. You can also lower Add Noise's opacity in its Blending Options if you only need it weaker everywhere.
Exercise
A coworker says a smart filter mask has a link icon, so they can move the mask separately from the image. Is that right?
Show answer
No. A smart filter mask is always tied to its smart object and has no link icon. If you need a mask that moves independently, use a layer mask on the smart object, which can be unlinked, or move the contents inside the smart object.