Sub topic 4
Place the Second Photo as a Smart Object
This chapter covers placing your second photo into the composite as a Smart Object. It explains what a Smart Object stores, how to create one in three ways, and what you can and can't do with one. It also covers the errors that come up most often.
Prerequisites: you can open and save images, you know the Layers panel, and you have already brought both photos into one document (the previous chapter). You don't need to know Free Transform yet. That is the next chapter.
What a Smart Object is
A Smart Object is a layer that holds the original image data inside a container. Photoshop shows you a rendered copy at the current size, rotation, and filters. The original pixels stay untouched inside the container.
This matters because ordinary (pixel) layers lose information every time you resample them. If you shrink a pixel layer to 30% and later enlarge it back to 100%, Photoshop has to invent the missing detail, and the result is soft. A Smart Object keeps the original, so enlarging it back re-renders from the full-resolution source.
You can recognize a Smart Object by the small page icon in the corner of its thumbnail in the Layers panel.
Why use one for a composite
For a two-photo composite, a Smart Object gives you four things.
- Repeatable resizing. You can scale the second photo down, decide it was too small, and scale it up again without quality loss, as long as you stay at or below the original pixel dimensions.
- Non-destructive filters. Filters applied to a Smart Object become Smart Filters. They sit under the layer, can be turned off, and can be edited later.
- A reversible source. You can open the embedded original, edit it, and see the change in the composite.
- A built-in mask for each filter. Every Smart Filter has its own mask, so you can limit a blur or sharpen to part of the image.
The limit is the original resolution. A Smart Object protects you from damage caused by repeated scaling. It cannot add detail beyond what the source contains. A 1000 px wide photo scaled to 200% on a document that needs 2000 px will still look soft.
Three ways to create one
Method 1: Place Embedded
Use this when the second photo is a separate file on disk.
- Open your base photo.
- Choose File > Place Embedded.
- Select the second photo and click Place.
- The image appears with a bounding box (a rectangle with handles). Press Enter (or click the check mark in the Options bar) to commit.
Photoshop creates a new Smart Object layer named after the file. Holding Shift while you drag a corner handle keeps proportions in most versions. In recent versions, proportions are locked by default and Shift unlocks them.
Method 2: Place Linked
Choose File > Place Linked instead. The layer is a Smart Object that points to the file on disk instead of copying it into the PSD. The layer thumbnail shows a chain-link icon.
| Aspect | Embedded | Linked |
|---|---|---|
| PSD file size | Larger, contains the photo | Smaller, contains a reference |
| Moves with the PSD | Yes | No. You must keep the source file |
| Updates when source changes | Only if you edit the contents | Yes, when the file on disk changes |
| Risk | Larger files | Broken link if the file is moved or renamed |
For a single composite you plan to hand off or archive, embedded is the safer default. Linked suits a project where the same photo appears in several documents.
Method 3: Convert an existing layer
If the second photo is already a layer in the document, for example because you dragged it in, convert it.
- Select the layer in the Layers panel.
- Right-click the layer and choose Convert to Smart Object. You can also use Layer > Smart Objects > Convert to Smart Object.
Do this before you scale the layer. Converting a layer you have already shrunk keeps only the shrunken pixels as the "original", so you gain nothing.
How the workflow fits together
Editing the contents
Double-click the Smart Object's thumbnail. Photoshop opens the embedded original in a new tab. Make your edit, then save with Ctrl+S (Cmd+S on Mac) and switch back to the composite tab. The composite updates to match.
Useful edits to make inside the source include spot-healing a dust mark and cropping unwanted edges. Keep in mind that anything you do inside the source applies before the composite's scale and rotation.
If you close the source tab without saving, the composite does not change.
What you can and can't do
Smart Objects limit direct pixel editing. This is the most common surprise.
| Action | On a Smart Object layer |
|---|---|
| Move, scale, rotate, skew | Works, non-destructive |
| Layer masks | Works |
| Adjustment layers (clipped) | Works |
| Blend modes and opacity | Works |
| Filters | Works, as Smart Filters |
| Brush, Clone Stamp, Eraser | Blocked |
| Healing on the layer itself | Blocked, unless you use a new empty layer with **Sample All Layers** |
If you try to paint on the layer, Photoshop shows a message: "Could not complete your request because the Smart Object is not directly editable." You then have three options.
- Paint on a new empty layer above it. Set the tool to sample Current & Below or All Layers.
- Edit the contents by double-clicking the thumbnail.
- Choose Layer > Rasterize > Smart Object to convert it to ordinary pixels. This is permanent for that layer, so keep a copy first.
For a composite, you rarely need to paint on the layer itself. You will paint on its mask, which is allowed.
Common errors and fixes
- The photo looks pixelated after you scale it up. The source has too few pixels. Check Image > Image Size in the source (double-click to open it). Use a higher-resolution photo, or scale down.
- A yellow warning triangle or "missing" label on a linked layer. The linked file moved or was renamed. Use Layer > Smart Objects > Relink to File and select it again.
- A very large PSD. Several embedded high-resolution photos add up. Consider linked objects for archival sources, or flatten finished parts in a copy.
- A mask is on the wrong thing. After you convert a layer that already has a mask, the mask stays attached to the Smart Object layer. If you edit the contents, you edit the photo only. The mask is not inside it.
- A filter you applied can't be moved. Smart Filters stay attached to the layer. Reorder them by dragging inside the filter list.
- The layer looks different after rasterizing. Rasterizing bakes in the current transform and filters. Undo right away if the result is wrong.
Check your work
Before you move on, confirm these points in the Layers panel.
- The second photo's layer shows the Smart Object icon in its thumbnail corner.
- It sits above the base photo layer.
- Its name is meaningful. Double-click the name and rename it, for example "Subject photo".
- If you chose a linked object, the link icon is present and shows no warning.
Next, you will scale, rotate, and position this layer with Free Transform. Because it is a Smart Object, you can try sizes freely and correct them later.
Exercise
You shrink a photo layer to 25% as an ordinary pixel layer, commit the transform, and then convert it to a Smart Object. Later you scale it back to 100%. Why does it look soft, and what should you have done instead?
Show answer
Converting after shrinking makes the already-reduced 25% pixels the Smart Object's source, so the lost detail is gone for good. You should have converted the layer to a Smart Object (or used Place Embedded) first, and then scaled it. The Smart Object would then keep the full-resolution original and could be scaled back up without loss.
Exercise
You try to use the Brush tool directly on a Smart Object layer and Photoshop refuses. Name two ways to continue without rasterizing the layer.
Show answer
Paint on a new empty layer above it, with the tool set to sample the layer below if needed, or double-click the Smart Object's thumbnail and edit the embedded original. For blending the photos, you can also paint on the layer's mask, which is allowed.