Sub topic 1
What a Smart Object Is and Why Mockups Use Them
Prerequisites
This chapter assumes you can already do the following:
- Move around Photoshop's panels, tools and menus.
- Work with layers, layer groups and layer masks.
- Use blend modes at a basic level.
- Tell raster pixels from vector shapes.
- Understand image resolution and color profiles such as sRGB.
You do not need to know scripting yet. The last chapters of this tutorial cover it.
What a smart object is
A smart object is a layer that holds the source content of an image, such as raster pixels, a vector file or another Photoshop document. Photoshop keeps that source intact inside the layer. The layer shows you a rendered preview of it.
You can scale, rotate, skew, warp and filter the layer, and the source underneath stays unchanged. Photoshop recalculates the preview from the original source each time you change a transform. A normal pixel layer works differently. Photoshop applies each transform directly to the pixels, and the result replaces the old pixels.
In the Layers panel, a smart object shows a small page icon in the corner of its thumbnail. That icon is the quickest way to tell a smart object from a regular layer.
Smart object versus rasterized layer
The difference shows up as soon as you resize a layer more than once.
| Behavior | Rasterized (pixel) layer | Smart object |
|---|---|---|
| Scale down, then scale back up | Detail is lost and does not return | Detail returns, because Photoshop resamples from the original |
| Transform history | Baked into the pixels | Stored as an editable transform |
| Filters | Permanent once applied | Applied as smart filters that you can edit, hide or remove |
| Editing the source | Paint directly on the layer | Open the contents in a separate window, edit, then save |
| Replacing the image | Delete and rebuild the layer | Replace Contents keeps the transform and effects |
| Vector content | Becomes pixels | Stays vector inside the object |
| Painting and cloning | Allowed | Blocked until you edit the contents or rasterize |
A concrete example makes the first row clear. Take a 2000 px wide photo and scale it to 10% on a pixel layer. It becomes 200 px wide. Scale it back to 100% and it is a blurry 2000 px image, because the lost pixels cannot be recovered. Do the same on a smart object. At 10% you still see a small image, but the 2000 px original stays inside. At 100% Photoshop resamples from that original and the image is sharp again.
There is a limit. Scaling a smart object up beyond the size of its source still enlarges the source and softens it. A smart object protects you from losing detail through repeated edits. It does not create detail that was never there.
Why mockups use smart objects
A product mockup is a photo or a rendered scene with a blank surface, such as a poster, a box, a phone screen or a mug. You place a design on that surface. The same scene is then reused for many designs.
A mockup needs three things from the design layer, and smart objects supply all of them:
- A stable container. The design sits in one layer with a known name. You find it quickly, and a script can find it too.
- A transform that survives replacement. The layer is distorted to match the perspective of the surface. When you swap the design, the distortion stays.
- Non-destructive effects. Smart filters, such as a slight blur to match the photo's focus, stay attached and editable. Layer styles and blend modes also stay in place.
The scene around the placeholder supplies the realism. It holds the shadows, highlights, texture and lighting. The placeholder holds only the design. Keeping those two jobs apart is the idea behind the whole tutorial.
How the source is stored
When you convert a layer to a smart object, Photoshop stores a copy of the layer content inside the mockup file. This is an embedded smart object. The source is not a separate file on disk, so the mockup file stays self-contained and easy to move. A later chapter compares this with linked smart objects, which point to an external file.
Double-clicking the smart object thumbnail opens the source in its own document window. For an embedded object, Photoshop opens it as a temporary document, usually with a .psb or .psd extension. When you choose File > Save and close that window, Photoshop updates the preview in the mockup.
The mockup file also stores the transform separately from the source. You can have a source that is 3000 px wide, displayed as a skewed shape that is 900 px wide in the scene. The transform is a set of instructions, not a change to the source.
Creating a smart object
There are several ways to make one. These are the common ones:
- Select a layer, then choose Layer > Smart Objects > Convert to Smart Object.
- Right-click the layer in the Layers panel and choose Convert to Smart Object.
- Use File > Place Embedded to bring in an image or vector file as a new smart object.
- Use File > Place Linked to reference an external file instead of copying it.
- Select several layers and convert them together. Photoshop packs them into one smart object, and their stack becomes the source document.
Pasting from Illustrator can also create a smart object, if you choose that option in the paste dialog.
Converting several layers into one smart object is useful for mockups. A design built from text, a logo and a background becomes one replaceable unit.
What smart objects cannot do directly
Because the source is protected, some tools do not work on a smart object layer. If you try to paint, clone, dodge or burn directly on it, Photoshop shows a message that the layer must be rasterized first. You have three options:
- Open the contents and edit the source instead.
- Add a new pixel layer above and paint there. Clip it to the smart object if the paint should stay within its shape.
- Rasterize the layer, which permanently turns it into pixels. For a mockup placeholder, avoid this. Rasterizing removes the ability to replace contents.
The third option is a common source of trouble. Once a placeholder is rasterized, you have lost the link to the source, and the workflow is broken.
Costs and trade-offs
Smart objects are not free. Keep these in mind when planning a mockup:
- File size. Each embedded smart object stores a full copy of its source. A template with several 4000 px designs can become large. Duplicating an embedded smart object by normal duplication creates a linked copy to the same source, so editing one changes both. Use Layer > Smart Objects > New Smart Object via Copy when you need an independent copy with its own source.
- Performance. Photoshop must resample the source whenever you change the transform or the zoom. Many large smart objects can make the document slow.
- Resolution ceiling. The sharpness of the final mockup depends on the source. A low-resolution design will look soft when placed on a large surface.
- Color handling. The source has its own color profile, and the mockup has another. Differences can shift the colors. A later chapter covers keeping them consistent.
Quick workflow preview
To see the idea in practice, this is the sequence you will build in the coming chapters:
- Open a blank mockup scene.
- Create a smart object placeholder on the product surface.
- Fit it to the surface with Distort, Perspective or Warp.
- Double-click it, paste in a design, save and close.
- Add shadows and highlights above it so it matches the scene.
- Export the result.
For the next design, you only repeat step 4 and the export. The scene and the transform are already done.
Check your understanding
Exercise
You scale a pixel layer to 25% and then scale it back to 100%, and it looks blurry. You repeat the same steps on a smart object, and it stays sharp. Explain why the results differ, and name one case where the smart object would still look soft.
Show answer
A pixel layer applies each transform to the pixels, so the data discarded at 25% cannot be recovered at 100%. A smart object keeps the original source untouched and recalculates the displayed image from that source on every transform, so scaling back to 100% resamples from full-detail data. It still looks soft if you enlarge it beyond the resolution of its source, for example scaling a 500 px source to fill a 2000 px surface, because the source never contained that detail.
Exercise
A teammate duplicates an embedded smart object placeholder with Ctrl+J, edits the contents of the copy, and finds that the original changed too. Why did this happen, and which command avoids it?
Show answer
A normal duplicate of a smart object shares the same embedded source as the original, so an edit to the source updates both layers. Layer > Smart Objects > New Smart Object via Copy creates a copy with its own independent source, so edits to one do not affect the other.