Sub topic 2
What a smart object is and how to recognize one
This chapter assumes you can work in the Layers panel, understand pixels and resolution, and have used layer masks and the Filter menu. It explains what a smart object stores, how to spot one, and what the common surprises are.
The working model
A smart object is a layer that holds a container instead of pixels. Inside the container is the original source data: a raster image, a vector file from Illustrator, a Camera Raw file, or even another Photoshop document with its own layers. Photoshop shows you a rendered preview of that source at the size and shape your document needs.
This gives you two separate things:
- The source: the original data, which Photoshop keeps unchanged.
- The instructions: the transforms (scale, rotate, warp), smart filters, and other settings applied on top of the source.
Each time you change the instructions, Photoshop re-renders the preview from the source. It does not alter the source and does not resample the previous preview. This is why you can scale a smart object down, then back up, and recover full detail. A normal pixel layer cannot do that. Once pixels are discarded, they are gone.
How to recognize a smart object
You can identify a smart object in several ways. Check more than one, because some indicators depend on the Photoshop version and the type.
- Thumbnail badge. In the Layers panel, the layer thumbnail has a small page-like icon in its lower-right corner. A linked smart object shows a chain-link badge instead.
- Properties panel. Select the layer and open Window > Properties. A smart object shows a Smart Object Properties view with the file name and buttons such as Edit Contents or Convert to Layer.
- Layer menu. Layer > Smart Objects offers commands such as Edit Contents, Replace Contents, and Rasterize. These are available only when a smart object is selected.
- Smart filters. If filters have been applied, a Smart Filters row appears under the layer, with a mask thumbnail and a list of filter names.
- Transform behavior. Scaling the layer down and back up does not blur it.
Newer versions also show a different badge for linked and cloud-linked objects. The exact icon varies, but the idea is the same: a badge on the thumbnail means the layer is not plain pixels.
What goes inside the container
The container's contents depend on how the smart object was made.
| Source | What is stored | Notes |
|---|---|---|
| Converted pixel layer | A copy of the layer's pixels | The container is a hidden embedded document. |
| Several layers converted together | A nested document with those layers | Layer structure is preserved inside. |
| Placed vector (AI, PDF, SVG) | The vector data | Stays sharp at any size, rasterized only at render time. |
| Placed raw file | The raw data plus Camera Raw settings | Settings can be re-edited later. |
| Linked file | A reference to a file on disk | The data lives outside the PSD. |
Embedded contents are stored inside your PSD, which is why smart objects can make files larger. Linked contents are stored outside the PSD and referenced by path. Chapter material on choosing between them comes later, so here the point is only that both are smart objects and look alike in the Layers panel apart from the badge.
Why the source stays intact
Photoshop does not edit the source when you work on the layer in the main document. Instead:
- A transform is saved as a matrix (and, for warps, a mesh) attached to the layer.
- A smart filter is saved as a filter name plus its settings.
- A mask on the smart filter is saved as a separate grayscale channel.
When Photoshop draws the layer, it applies those instructions to the source in order. If you change a setting, only the instructions change. The source is read again from the container.
There is one limit to understand. The preview is rendered at the document's resolution. A vector source can be rendered at any size, but a raster source has a fixed pixel count. If you scale a 500-pixel raster smart object to 2000 pixels, it will look soft, because there is no more detail to recover. What the smart object protects is the original data: you can always scale back down without making it worse.
What you cannot do directly
Because the layer holds a container, any tool that needs to change pixels cannot act on it directly. Photoshop blocks these tools and shows a message that the layer must be rasterized first. Typical examples:
- Brush, Eraser, Clone Stamp, and other painting tools.
- Dodge, Burn, and Blur tools.
- Some filters that do not support smart filtering.
- Direct pixel selection edits, such as filling a selection on the layer.
You have three practical options:
- Edit the contents (double-click the thumbnail), make the pixel change in the source document, and save.
- Paint on a new empty layer above the smart object.
- Rasterize the layer, which permanently converts it to pixels and removes the nondestructive behavior.
Option 1 is usually best because it keeps the smart object intact.
Common errors and misunderstandings
- "I painted on it, and nothing happened." You likely selected the smart object layer and got a warning, or you painted on a different layer. Check the active layer.
- "My file got huge." Each embedded smart object stores its full source. Large sources, many copies, or many filters increase file size.
- "The layer looks blurry after I scaled it up." The source resolution was too low, or you scaled a rasterized copy before converting it. Convert to a smart object before the first transform, not after.
- "I converted it, but the earlier scaling is still lost." Converting does not restore data already discarded. The container holds the pixels as they were at conversion time.
- "It is still a smart object, but the badge is missing." Badges can be hidden in certain panel view settings. Check the Properties panel.
Seeing the structure with a script
You can check from ExtendScript whether the active layer is a smart object. The layer's kind property is LayerKind.SMARTOBJECT for smart objects.
// Photoshop ExtendScript: report whether the active layer is a smart object
var doc = app.activeDocument;
var layer = doc.activeLayer;
if (layer.kind === LayerKind.SMARTOBJECT) {
alert('"' + layer.name + '" is a smart object.');
} else {
alert('"' + layer.name + '" is not a smart object (kind: ' + layer.kind + ").");
}This is a read-only check. It does not change the layer.
Exercises
Exercise
You scale a smart object layer down to 10% and then scale it back to 100%. Why is the result sharper than doing the same with a regular pixel layer?
Show answer
The smart object keeps the original source data in its container. Each transform is stored as an instruction and the preview is re-rendered from the source. The 10% step never discarded the original pixels. A regular pixel layer resamples and discards pixels at the 10% step, so scaling back up has less data to work with.
Exercise
A layer has a small badge in the corner of its thumbnail, and the Brush tool shows a warning when you try to paint on it. Name two other ways to confirm it is a smart object, and name two ways to make the pixel change you wanted without rasterizing.
Show answer
Confirm by opening the Properties panel (it shows Smart Object Properties with Edit Contents) or by checking that the Layer > Smart Objects submenu has active commands. A Smart Filters row under the layer also indicates one. To make the change without rasterizing, double-click the thumbnail, edit the contents in the source document, and save; or paint on a new empty layer above the smart object.
Exercise
You place a 400-pixel-wide photo as a smart object and scale it to 1600 pixels wide. It looks soft. Does converting it to a smart object fix this, and why or why not?
Show answer
No. A smart object preserves the original data but does not add detail. A raster source with 400 pixels of width has only that much detail, so rendering at 1600 pixels interpolates and looks soft. A smart object helps only by letting you scale back down without further loss.