Sub topic 13
Exporting the finished mockup
This chapter covers the last step of the mockup workflow: turning the layered PSD into files you can send to a client, post on a website, or print. It assumes you can already replace smart object contents, and that you know what a color profile is and how pixel dimensions relate to resolution. The PSD stays your master. Every export is a disposable copy made from it.
Master file versus deliverables
A mockup has two kinds of output.
- The master PSD (or PSB) keeps every layer, smart object, smart filter and mask. You save it with File > Save, and you reopen it to make variations.
- Deliverables are flattened copies in JPEG, PNG or similar. They carry no layers, so you cannot edit them later.
Never export by flattening the open document and saving over it. Use a command that writes a copy, so the open document stays layered.
Choosing a format
| Format | Best for | Transparency | Notes |
|---|---|---|---|
| JPEG | Photographic mockups on a full background | No | Lossy. Small files. Repeated re-saving degrades quality. |
| PNG-24 | Mockups with a transparent background, or sharp text and edges | Yes | Lossless. Files are larger than JPEG. |
| WebP | Web delivery where file size matters | Yes | Available in Export As. Check that your target platform accepts it. |
| TIFF | Print proofs and archives | Yes, with layers or alpha | Large files. Can keep the working color profile. |
| Client review of print-oriented mockups | Depends | Useful for multiple artboards in one file. |
Most mockups for portfolios and storefronts end up as JPEG. Use PNG when the scene sits on a transparent background, such as a cut-out product shot.
The three export routes
Photoshop gives you several ways to write a copy. They differ in how much control you get.
Export As
File > Export > Export As (Alt+Shift+Ctrl+W on Windows, Opt+Shift+Cmd+W on macOS) is the usual choice. Its dialog shows a live preview and these controls:
- Format and Quality (JPEG quality here runs from 0 to 100%).
- Image Size: width, height, a Scale percentage and a Resample method.
- Canvas Size to crop or pad.
- Color Space: Convert to sRGB and Embed Color Profile.
- Metadata: none, copyright and contact info, or all.
Export As does not alter the open document.
Save for Web (Legacy)
File > Export > Save for Web (Legacy) (Alt+Shift+Ctrl+S) is older but still useful. It offers a four-up preview that compares quality settings, an estimated file size and download time, and a Convert to sRGB checkbox. Use it when you need to hit a specific file-size budget.
Save a Copy
File > Save a Copy writes a duplicate in almost any format Photoshop supports. Use it for TIFF and PDF. For JPEG, quality is on a 0 to 12 scale, so a value of 10 is not the same as 10%.
Quick Export
File > Export > Quick Export as PNG (or as your chosen format in Preferences > Export) skips the dialog. It is fast, but you lose control over size and profile, so use it for drafts.
Color: convert to sRGB
Most browsers and phones assume sRGB. If your document is in Adobe RGB or Display P3 and you export without conversion, a viewer that ignores profiles shows washed-out or oversaturated colors.
For web deliverables:
- Check Edit > Assign Profile or the document status bar to see the working profile.
- In Export As, tick Convert to sRGB.
- Tick Embed Color Profile so profile-aware software can read the tag. The tag adds a few KB.
Two edge cases to know:
- CMYK documents. JPEG can store CMYK, but browsers handle it poorly. Convert to RGB for screens, and expect saturated colors to shift.
- 16-bit documents. JPEG holds 8 bits per channel. Export As handles the reduction for you. With Save a Copy, convert the copy with Image > Mode > 8 Bits/Channel first if the option is unavailable.
Whatever profile you chose for your artwork (see the previous chapter on color consistency) should match the mockup's. Exporting cannot repair an artwork that was converted incorrectly earlier.
Size and resolution
Screen output depends only on pixel dimensions. The "pixels per inch" value is metadata and has no effect on how a JPEG appears on screen. Print output cares about both: pixel dimensions divided by the print size gives the effective resolution.
Practical sizing rules:
- Match the destination. Many marketplaces ask for a long edge between 2000 and 3000 px. Check the platform's current requirements.
- Produce a 2x version if the mockup will appear on high-density displays. A slot that displays at 1000 px wide needs a 2000 px file.
- Never upscale a finished export to reach a size. Build the mockup large and scale down, because downsampling hides small flaws and upsampling shows them.
- For downsampling, use Bicubic Sharper (or Bicubic Automatic). Sharpening applied by the resample usually removes the need for a separate sharpen pass.
What can go wrong in the export
- Hidden layers still matter. A hidden layer is not exported, but a layer left visible by mistake (a guide, a watermark test, a "before" state) is. Before exporting, toggle through the layer stack, or use a layer comp that records the intended visibility.
- Linked smart objects. If a placeholder is linked, Photoshop must find the file on disk to render the current artwork. A missing link shows a warning icon, and the export uses the last cached pixels. Update the links first, or check File > Scripts or the Properties panel for the status.
- Smart filters rendering. Filters such as Gaussian Blur depend on resolution. If you scale the export far from the master's size, effects expressed in pixels look different, because the export is a resample of the final render. When the look must match, export at 100% and resize afterwards.
- Transparent edges in JPEG. JPEG has no alpha channel, so transparent areas turn white or the matte color. Choose PNG, or set the matte color to the background you want.
- Banding in gradients. Soft shadows can band at low JPEG quality or in 8-bit. Raise quality to about 80 to 90% or add a little noise to the shadow layer.
Choosing JPEG quality
Quality is a trade between file size and artifacts. For mockups, whose smooth gradients and fine text edges expose compression, use these starting points:
| Use | Export As quality | Save a Copy scale (0–12) |
|---|---|---|
| Draft for internal review | 60 to 70% | 6 to 7 |
| Client or storefront | 80 to 90% | 9 to 10 |
| Near-lossless hand-off | 100% | 12 |
Compare the preview at 100% zoom on the artwork's text and on the shadow gradient. Those are the first places artifacts show.
Exporting from a script
The script in the final chapter exports with doc.saveAs. For finer control, such as sRGB conversion, a fixed size and a PNG copy, use exportDocument with Save for Web options on a temporary duplicate. The duplicate protects the master.
#target photoshop
var doc = app.activeDocument;
var outDir = new Folder("~/mockups/out");
if (!outDir.exists) { outDir.create(); }
var baseName = doc.name.replace(/\.[^\.]+$/, "");
// Work on a duplicate so the layered master is untouched.
var copy = doc.duplicate(baseName + "-export", true); // true = merged
app.activeDocument = copy;
// Resize to a 2000 px wide deliverable.
copy.resizeImage(UnitValue(2000, "px"), undefined, 72, ResampleMethod.BICUBICSHARPER);
// JPEG, quality 85 on the 0-100 scale of Save for Web.
var jpgOpts = new ExportOptionsSaveForWeb();
jpgOpts.format = SaveDocumentType.JPEG;
jpgOpts.quality = 85;
jpgOpts.optimized = true;
jpgOpts.includeProfile = true;
jpgOpts.convertToSRGB = true;
copy.exportDocument(new File(outDir + "/" + baseName + ".jpg"), ExportType.SAVEFORWEB, jpgOpts);
// PNG-24 with the same size.
var pngOpts = new ExportOptionsSaveForWeb();
pngOpts.format = SaveDocumentType.PNG;
pngOpts.PNG8 = false;
pngOpts.transparency = true;
pngOpts.convertToSRGB = true;
copy.exportDocument(new File(outDir + "/" + baseName + ".png"), ExportType.SAVEFORWEB, pngOpts);
// Discard the duplicate and return to the master.
copy.close(SaveOptions.DONOTSAVECHANGES);
app.activeDocument = doc;The true argument to duplicate merges the layers into one in the copy only. The original keeps its smart objects.
A pre-export checklist
- Save the master PSD first, so the export reflects a saved state.
- Confirm every smart object is up to date and no link shows a warning.
- Check layer visibility against the intended comp.
- Confirm the document is RGB, 8-bit for the copy, in the profile you expect.
- Pick the format by transparency needs and destination.
- Set pixel dimensions from the destination, not from the PPI field.
- Convert to sRGB for screens, and embed the profile.
- Open the exported file in a browser or viewer outside Photoshop and compare it with the master.
Exercise
A client asks for a storefront image that is 2400 px wide with a transparent background. Your master PSD is 6000 px wide in Adobe RGB. Which format and settings do you use, and why shouldn't you flatten and save the open document?
Show answer
Use PNG-24 (transparency on) through Export As or Save for Web. Set the width to 2400 px with a downsampling method such as Bicubic Sharper, tick Convert to sRGB, and embed the profile. JPEG would fill the transparent areas with a matte color, and Adobe RGB would look off in browsers that ignore profiles. Export writes a copy, so the master keeps its layers and smart objects. Flattening the open document and saving would destroy them.
Exercise
Your script exports a JPEG with JPEGSaveOptions and quality = 85, and the result is far larger than expected. What is the mistake, and what value gives roughly the quality you wanted?
Show answer
JPEGSaveOptions.quality uses a 0 to 12 scale, so 85 is out of range and gets clamped to the maximum. For roughly 85%, use 10 (or 9 for slightly smaller files). If you want a 0 to 100 scale, use ExportOptionsSaveForWeb with exportDocument.