Sub topic 8
Saving PSD: keeping layers, masks, and smart objects editable
This chapter assumes you can work the Photoshop interface, understand layers and masks at a basic level, and have read the earlier chapters on Save, Save As, and Save a Copy. It covers what a PSD stores, which options affect that, and the failure cases that break editability later.
What a PSD actually stores
PSD (Photoshop Document) is Photoshop's native format. It stores the working structure of your document instead of one flat grid of pixels. When you save a PSD, these elements are kept:
- Pixel layers, groups, and their stacking order
- Layer masks, vector masks, and clipping relationships
- Adjustment layers and fill layers
- Layer styles (drop shadow, stroke, and so on) and blend modes
- Live text, which stays editable as type
- Smart objects, embedded or linked
- Alpha channels, spot channels, and saved paths
- The embedded color profile, color mode, and bit depth (8, 16, or 32 bits per channel)
- Guides, slices, and notes
Two things are not kept. The History panel is cleared when you close the document. Unsaved selections are lost unless you saved them as an alpha channel.
The practical rule follows from this: the PSD is your master, and JPEG and PNG files are deliverables made from it. If you only keep the deliverable, you cannot get the layers back.
Saving the first time
Choose File > Save (Ctrl+S or Cmd+S) on a document that has never been saved. Photoshop may first ask where to save it: Cloud documents or your computer. Choose your computer for a local file. Cloud documents are covered in a later chapter.
In the dialog, set the Format menu to Photoshop (\*.PSD). Then check the options below the file name. Which options appear depends on your Photoshop version and operating system, and some are unavailable when the document contents don't support them.
| Option | What it controls | Typical choice |
|---|---|---|
| As a Copy | Saves a copy and leaves the open document unchanged | Off for your master, on for side copies |
| Alpha Channels | Keeps saved selections and extra channels | On if you use them |
| Layers | Keeps the layer structure | On for a master |
| Notes | Keeps note annotations | On if you use them |
| Spot Colors | Keeps spot color channels | On for print work |
| ICC Profile | Embeds the working color profile | On |
If Layers is unavailable or off, you are no longer saving a layered master. This is a common cause of a "PSD" that turns out to be flat.
After the first save, Ctrl+S or Cmd+S writes to the same file without a dialog. Use Save As (Shift+Ctrl+S or Shift+Cmd+S) when you want a new file name, a new location, or a different format.
Maximize Compatibility
When you save a PSD, Photoshop can add a flattened composite image alongside the layers. This setting is called Maximize Compatibility. Photoshop itself does not need it, because it reads the layers directly. Other programs often do need it. They may not understand every layer feature, and without the composite they can show a blank image or refuse to open the file. Newer versions of Photoshop add features that older versions can't interpret, so the composite also lets an older version show the file.
You control it in Preferences > File Handling > Maximize PSD and PSB File Compatibility, with these choices:
- Always: every PSD gets the composite.
- Ask: Photoshop prompts you on each save.
- Never: no composite is stored.
The cost is file size. The embedded composite can increase the file noticeably, especially with large documents. If a PSD will be placed into other applications, previewed in a file browser, or shared with people on other software versions, choose Always or Ask. If the file stays in Photoshop and disk space matters, Never is reasonable.
Smart objects: embedded or linked
A smart object preserves the original source data of a layer, so you can scale, warp, and filter it without permanently damaging pixels. How the source is stored matters when you save.
- Embedded smart objects store the source inside the PSD. The file is self-contained, but its size grows with each embedded source.
- Linked smart objects store only a reference to an external file. The PSD stays smaller, and edits to the source file update every document linking to it. If the source file moves, is renamed, or is deleted, Photoshop marks the layer as missing and can't update it. Saving the PSD does not copy the linked file anywhere.
So when you move a PSD with linked smart objects to another computer, you must also move the linked files and keep their relative paths. Check Layer > Smart Objects > Convert to Embedded or the Properties panel for linked layers if you need a self-contained file. Alternatively, use File > Package to gather a document and its linked files into one folder.
Smart filters (filters applied to a smart object) are saved in the PSD and remain adjustable, because they are non-destructive. Applying the same filter to a regular pixel layer changes the pixels permanently.
Text and fonts
Text layers are saved as live type, so you can edit the words after reopening. The PSD does not contain the font files. If you open the file on a machine that lacks a font, Photoshop warns you about missing fonts and substitutes another. The text stays editable, but its appearance changes. Photoshop may also ask you to update the layer, which can shift line breaks. To avoid this, share the fonts with the file, or convert a copy of the text layer to shapes or pixels for final artwork (keeping the live-text version in the master).
File size limits and PSB
PSD has two limits: a maximum of 30,000 pixels on either side, and a maximum file size of 2 GB. If your document exceeds either, Save As offers Large Document Format (\*.PSB). PSB supports up to 300,000 pixels per side and much larger files. It holds the same content as PSD, but fewer applications can open it, and older Photoshop versions can't read it. Use PSB only when a PSD cannot hold the document.
Keeping the master safe
Several habits keep a PSD usable over time:
- Save early and often. Save before risky operations such as merging or flattening, because those steps change structure.
- Do not flatten the master. Flatten only a copy for delivery. Use Save a Copy or Export As to produce deliverables. This leaves the layered document untouched.
- Name layers. Layer names are stored in the PSD and make future edits much faster.
- Version the file. Save As with a suffix (
banner_v2.psd) before big changes, so you can return to an earlier state. - Check linked files. Before sending a PSD, open Layer > Smart Objects > Relink to File or use Package so no link is broken.
- Back up. A PSD is a single file. If it corrupts, you lose everything in it.
Common errors
- "Layers" checkbox is dimmed or off. The format is not PSD, or the document is already flat. Check the Format menu.
- A PSD opens blank in another app. Maximize Compatibility was off. Resave with it enabled.
- Missing linked file warning. A linked smart object's source moved. Use Relink to File and pick the correct file.
- Cannot save as PSD because the document is too large. You exceeded 2 GB or 30,000 pixels. Save as PSB.
- Text looks different on another computer. The font is not installed there.
Saving a PSD with a script
You can save a layered PSD from ExtendScript with Document.saveAs(). Its arguments are the target file, the save options, an as-a-copy flag, and the extension case. Run the script with File > Scripts > Browse.
// ExtendScript: save the active document as a layered PSD
var doc = app.activeDocument;
var psdOpts = new PhotoshopSaveOptions();
psdOpts.layers = true;
psdOpts.embedColorProfile = true;
psdOpts.maximizeCompatibility = true;
doc.saveAs(new File("~/Desktop/banner.psd"), psdOpts, true, Extension.LOWERCASE);Passing true for the third argument saves a copy, so the open document keeps its current name and location. Pass false if you want the open document to become the saved PSD.
Exercise
A colleague opens your PSD in another application and sees a blank canvas, but it opens fine in Photoshop with all layers intact. What is the most likely cause, and how do you fix it? Also name one reason the PSD might be much larger than expected.
Show answer
Maximize Compatibility was off, so the file has no embedded flattened composite for the other application to display. Set Preferences > File Handling > Maximize PSD and PSB File Compatibility to Always or Ask, then resave the PSD. A PSD can be large because embedded smart objects store their full source data inside the file, and because Maximize Compatibility adds a composite copy of the image.
Exercise
You send a PSD containing a linked smart object to a client. They report that the layer shows a missing-link warning. Why did this happen, and what are two ways to avoid it next time?
Show answer
A linked smart object stores only a reference to an external file, and saving the PSD does not include that file. On the client's computer the path does not exist. Avoid this by converting the layer to an embedded smart object before sending, or by using File > Package to collect the PSD and its linked files into one folder.