Sub topic 10
Choosing Embedded or Linked Smart Objects
This chapter compares the two storage models for smart objects and shows how to pick one for a mockup workflow. It also covers converting between them and the failures that tend to appear in practice.
It assumes you can already create a placeholder smart object, edit its contents, and use Replace Contents. Those steps are covered in earlier chapters.
Two ways to store the same thing
Every smart object points to source content: a raster image, a vector file, or another Photoshop document. The difference is where that content lives.
- An embedded smart object stores a copy of the source inside the mockup PSD. The PSD is self-contained. Editing the contents happens inside the PSD, and nothing outside it changes.
- A linked smart object stores only a reference to an external file on disk. The mockup reads the pixels from that file. If the file changes, the mockup can pick up the change.
In the Layers panel, an embedded smart object shows a small page icon in the corner of its thumbnail. A linked one shows a chain-link icon. A linked layer whose file cannot be found shows a warning icon instead.
How each one behaves
The behavior differences come from where the data lives.
| Aspect | Embedded | Linked |
|---|---|---|
| Source data | Stored inside the PSD | Stored in an external file |
| PSD file size | Grows with each embedded source | Stays small |
| Portability | Send one file and everything works | Must send the linked files too, with paths intact |
| Editing the source | Double-click opens a temporary copy. Save to update. | Double-click opens the original file. Save to update every document that links to it. |
| Sharing one source across documents | Not possible. Each copy is independent. | Possible. Many PSDs can link to one file. |
| Risk of breaking | Low | Missing or moved files |
| Typical formats | Anything | Any supported format, often PSD, PNG, JPEG, AI |
Two details matter in practice.
First, an embedded smart object stays attached to the PSD after you edit it. The temporary file Photoshop opens is discarded once you close it. Saving the edit writes the new content back into the PSD.
Second, a linked smart object is not a live feed in every situation. Photoshop checks the file when you open the document and again when you work with the layer. If the file changed while the document was open, the layer may show a modified-file indicator. You then choose Layer > Smart Objects > Update Modified Content to pull in the new version.
Which one to pick
Choose based on how the mockup will be used, not on habit.
- Distributing a template to clients or customers. Use embedded. The recipient opens one file and edits the placeholder. No path problems can occur.
- One designer, one machine, many mockups of the same artwork. Use linked. Update the artwork file once and each mockup follows.
- A team on shared storage. Use linked with a fixed folder layout, for example a
mockups/art/folder next to the PSDs. Keep relative structure the same for everyone. - Archiving a finished project. Use embedded, or convert to embedded before archiving. A linked file that goes missing years later cannot be recovered from the PSD.
- A very large source, such as a high resolution scan. Use linked to keep the PSD manageable. Many embedded copies of a large source multiply file size.
For the placeholder itself, embedded is usually the right default. The placeholder is meant to be swapped, so the content inside it is temporary. The mockup's value is its transform, shadows and effects, and those are stored in the PSD either way.
Creating each kind
You create an embedded smart object when you convert a layer or place a file with the default settings.
- Select a layer and choose Layer > Smart Objects > Convert to Smart Object. The result is embedded.
- Choose File > Place Embedded to add a file from disk as an embedded smart object.
- Choose File > Place Linked to add a file from disk as a linked smart object.
Opening a file by dragging it into the document window may follow your Preferences setting. In Preferences > General, the option "Always Create Smart Objects when Placing" controls whether placed content becomes a smart object at all. Check the result in the Layers panel by looking at the thumbnail icon.
Converting between the two
You can switch a smart object after the fact. This is useful when a project changes from private work to a client delivery.
- Linked to embedded: select the layer and choose Layer > Smart Objects > Embed Linked. Photoshop copies the external content into the PSD. Use Embed All Linked to do this for every linked layer at once.
- Embedded to linked: choose Layer > Smart Objects > Convert to Linked. Photoshop asks where to save the file and writes the content out as an external file, then points the layer at it.
Embedding does not remove the external file. It remains on disk, but the PSD no longer depends on it. Changes you make to that file afterward do not reach the PSD.
Replace Contents with each type
Replace Contents works on both types, but the result differs.
- On an embedded layer, the new file is copied into the PSD and replaces the old embedded copy.
- On a linked layer, the layer is repointed to the new file. The old file is untouched.
Transforms, masks, smart filters and layer styles on the placeholder stay in place. Because of this, you can switch artwork across a whole batch without touching the scene. Linked layers keep the PSD small during batch runs, but each replacement leaves a reference that must still resolve when the file is reopened.
The script from the plan uses the placedLayerReplaceContents action. This code replaces the artwork and saves a JPEG copy:
#target photoshop
var doc = app.activeDocument;
var artworkFile = new File("~/mockups/art/poster-01.png");
var outFile = new File("~/mockups/out/poster-01.jpg");
// Select the placeholder smart object by layer name (top-level layer).
doc.activeLayer = doc.layers.getByName("Artwork");
// Replace its contents with the new artwork file.
var desc = new ActionDescriptor();
desc.putPath(charIDToTypeID("null"), artworkFile);
desc.putInteger(charIDToTypeID("PgNm"), 1);
executeAction(stringIDToTypeID("placedLayerReplaceContents"), desc, DialogModes.NO);
// Save a JPEG copy of the finished mockup.
var opts = new JPEGSaveOptions();
opts.quality = 10;
doc.saveAs(outFile, opts, true, Extension.LOWERCASE);The layer must be at the top level of the layer stack. For a layer inside a group, look it up through that group's layers collection.
Managing links
Photoshop gives you tools to see and fix linked layers.
- Properties panel. Select a smart object layer and open Window > Properties. It shows the file name, type and, for linked content, the path.
- Relink to File. Choose Layer > Smart Objects > Relink to File to point a broken or moved link at a new file.
- Relink to Library Graphic. This applies to linked Creative Cloud Library assets.
- Reveal in Finder or Explorer. Choose Layer > Smart Objects > Reveal in Finder (macOS) or Reveal in Explorer (Windows) to open the folder that holds the source.
- Update Modified Content. Pulls in changes to a linked file made outside Photoshop.
When you open a PSD with a missing link, Photoshop may show a dialog about missing linked files. The layer keeps its last rendered pixels, so you can still view the mockup. You cannot edit the contents until you relink.
Edge cases and common failures
- Moved folders. Photoshop stores a path and often a relative hint. If you move the PSD and the art folder together, the link usually survives. If you move only one, relinking is required.
- Cloud sync delays. A linked file in a sync folder may be a placeholder that downloads on demand. Photoshop can fail to read it until the download finishes. Keep files available offline for linked sources.
- Same linked file in two layers. Both layers read the same file, so a change to that file affects both. This helps for repeated logos and hurts when you wanted different artwork on each.
- Editing a linked file outside Photoshop while the PSD is open. The layer is stale until you update it. Check for the modified-file indicator before exporting.
- Color profile mismatch. An embedded source keeps its own profile inside the PSD. A linked source keeps the profile of the external file. If the external file changes to a different profile, the mockup's colors can shift. The next chapter covers profile and resolution consistency.
- Lost embedded sources in a copy. Duplicating a layer with Layer > New > Smart Object via Copy creates an independent embedded copy, so edits to one do not change the other. Plain Duplicate Layer keeps both layers tied to one source, so editing either updates both. Know which one you used.
A practical workflow
A common setup for a product mockup:
- Build the template with an embedded placeholder named
Artwork. Distribute this version. - For your own production work, convert the placeholder to linked with Convert to Linked, saving to
art/current.psd. - Edit
art/current.psdonce per design. Each mockup that links to it updates after Update Modified Content. - Before delivery, run Embed All Linked and save a copy.
This keeps your working files small and your deliverables self-contained.
Exercise
You have a mockup PSD with an embedded smart object named Artwork. A client asks for a single file they can edit on their own computer, but you also want ten of your own mockups to share one logo file so you can update it once. Which type should each case use, and what menu command lets you finish the client delivery safely?
Show answer
Use embedded for the client file, so it contains everything and has no paths to break. Use linked for the ten mockups that share the logo, because they all read one external file and update when it changes. Before delivering any file that contains linked layers, run Layer > Smart Objects > Embed All Linked and save a copy.
Exercise
You open a PSD and a dialog reports a missing linked file. The mockup still displays. What can you still do, what can you not do, and how do you fix it?
Show answer
You can still view the last rendered pixels and export the current look. You cannot edit the contents of the missing layer. Fix it by selecting the layer and choosing Layer > Smart Objects > Relink to File, then picking the moved or renamed file.