Sub topic 12
Export As and web delivery: scale, format options, and metadata
This chapter assumes you can already save PSD, JPEG, and PNG files and know the difference between lossy and lossless compression. It also assumes you know what an embedded color profile is. Here you will use Export As to produce files for the web. You will choose a scale, set format options, and decide what metadata leaves with the file.
What Export As does differently
Save As writes a file that represents your document. Export As writes a deliverable made from your document. The distinction has three consequences:
- The open document is never renamed or retargeted. After exporting, the title bar still shows your PSD, and Ctrl/Cmd+S still saves the PSD.
- Export As always uses the flattened composite of the visible layers. Hidden layers are left out, and no layers are written to the output.
- Size, format, and color conversion are applied to the output only. Your source pixels stay untouched.
Open it with File > Export > Export As (Alt+Shift+Ctrl+W on Windows, Option+Shift+Cmd+W on macOS). A preview appears on the left. Settings are on the right. The preview shows the actual encoded result, so you can zoom to 100% and inspect artifacts before writing the file.
Format options
The Format menu offers PNG, JPG, GIF, and SVG. Newer versions may also list WebP. Options change with the format.
| Format | Main options | Typical use |
|---|---|---|
| PNG | Transparency checkbox, Smaller File (8-bit) | Logos, UI, screenshots, anything with alpha |
| JPG | Quality slider, Progressive in some versions | Photographs |
| GIF | Palette-based, optional transparency | Legacy animation workflows |
| SVG | Vector output of shape content | Simple vector artwork only |
JPG quality
Export As shows quality as a percentage, from 0 to 100%. This differs from the 0 to 12 scale in the Save As dialog and in the JPEGSaveOptions.quality property. Use the live preview and the file size readout in the dialog to decide. For most photographs on the web, 70 to 85% is a reasonable range, and the visible differences above that are small. Flat color, text, and sharp edges show artifacts such as ringing around letters at lower settings. If your image is mostly flat color, export a PNG instead.
PNG transparency and Smaller File
The Transparency checkbox keeps the alpha channel. If you turn it off, transparent pixels are filled with the canvas color, which is usually white. Turn it off only when the destination cannot handle alpha.
Smaller File (8-bit) reduces the PNG to an 8-bit palette of at most 256 colors. This works well for flat graphics with few colors. It can cause banding in gradients and soft shadows, so check the preview before exporting.
Which layers are exported
If you have artboards or want a single layer or group out of the document, right-click it in the Layers panel and choose Export As. The dialog opens for just that layer. Photoshop trims it to its bounds. This is useful for exporting one icon from a larger comp.
Image size, scale, and resampling
The Image Size section has Width, Height, and a Scale menu. It also has a Resample menu.
- Scale presets such as 0.5x, 1x, 2x, and 3x multiply the document size. Choosing 2x on a 960 px wide document writes a 1920 px wide file.
- Width and Height are linked by default, so changing one updates the other.
- Resample sets the interpolation method. Bicubic Smoother is generally better when enlarging, Bicubic Sharper when reducing, and Nearest Neighbor for pixel art, where you want hard edges and no blending.
Scaling up in the dialog does not create detail. It interpolates new pixels from existing ones. If you need a 2x asset, design at the larger size and export 1x as the reduced version. Scaling down keeps detail much better than scaling up.
The Canvas Size section lets you export onto a larger or smaller canvas. It crops or pads the output, and your document canvas stays as it was.
Naming multiple scales
When you export a layer at several scales, you can add scale entries in the Export As dialog, each with a suffix such as @2x. Photoshop writes one file per entry, for example logo.png and [email protected]. Many front-end projects expect this convention, but check your own project's naming rule.
Color space and metadata
Color space
Two checkboxes control color handling:
- Convert to sRGB converts the pixel values from the document profile, such as Adobe RGB or Display P3, into sRGB. Browsers and apps assume sRGB when a file has no profile, so converting keeps colors from shifting.
- Embed Color Profile attaches the profile to the file. It adds a few kilobytes. A profile-less sRGB file is slightly smaller, but an embedded profile removes any guesswork.
For general web work, leave Convert to sRGB on. Turn off conversion only if you intentionally deliver a wide-gamut file and know the viewing environment supports it. Bit depth is also reduced here: a 16-bit document exports as 8-bit for JPG and as 8-bit PNG in this dialog.
Metadata
The Metadata menu controls what descriptive data travels with the file. Choices include None and Copyright and Contact Info. Some versions list further options, so check yours. Metadata can include camera model, GPS location, capture date, editing history, and the creator's name.
Choosing None also lowers the file size a little. If the image must carry your copyright for licensing, use Copyright and Contact Info. That choice keeps the creator and rights fields and drops the camera and location fields.
Export As versus Quick Export
File > Export > Quick Export as PNG skips the dialog and writes with your saved defaults. Defaults are set in File > Export > Export Preferences, where you can pick PNG, JPG, or another format, plus metadata, color space, and the destination folder behavior. Use Quick Export for repeated, identical output. Use Export As when each image needs a quality or size decision.
A scripted two-scale export
Export As has no direct scripting call, but you can reproduce its main behavior. This script duplicates the document, flattens the copy, converts it to 8-bit sRGB, resizes it to a target width, and saves a JPEG. It then closes the copy without touching your original.
// ExtendScript: export a 960 px wide JPEG copy and leave the original alone
var doc = app.activeDocument;
var oldUnits = app.preferences.rulerUnits;
app.preferences.rulerUnits = Units.PIXELS;
var copy = doc.duplicate("export-copy", true); // true: merge layers in the copy only
copy.bitsPerChannel = BitsPerChannelType.EIGHT;
copy.convertProfile("sRGB IEC61966-2.1", Intent.RELATIVECOLORIMETRIC, true, false);
copy.resizeImage(
new UnitValue(960, "px"),
undefined, // keep the aspect ratio
72,
ResampleMethod.BICUBICSHARPER
);
var jpegOpts = new JPEGSaveOptions();
jpegOpts.quality = 9; // scale is 0 to 12
jpegOpts.embedColorProfile = true;
jpegOpts.formatOptions = FormatOptions.STANDARDBASELINE;
copy.saveAs(new File("~/Desktop/banner-960.jpg"), jpegOpts, true, Extension.LOWERCASE);
copy.close(SaveOptions.DONOTSAVECHANGES);
app.preferences.rulerUnits = oldUnits;The profile name in convertProfile must match the name installed on your system. If Photoshop reports the profile is not found, check the name under Edit > Convert to Profile.
Common mistakes
- Exporting from a small source to a 2x scale. The result is soft. Start from the larger size.
- Leaving Transparency off for a logo. The logo arrives with a white box around it.
- Using JPG for text and flat graphics. Artifacts appear around edges. Use PNG.
- Keeping all metadata on public photos. This can expose location and device details.
- Treating the exported file as the master. Exports are flattened and often lossy. Keep the PSD.
- Skipping the preview. Smaller File (8-bit) can band gradients, and the preview shows this at 100% zoom.
Exercise
A 1200 px wide PSD in Adobe RGB contains a logo layer with a soft drop shadow. You must deliver a transparent PNG at 2x for a website, and the client asked that no camera or location data be included. Which Export As settings do you use, and what should you check before you export?
Show answer
Choose PNG with Transparency on, and turn Smaller File (8-bit) off because the soft shadow could band in a limited palette. Set Scale to 2x only if the source art is built for that size. Otherwise enlarging will blur it, so redesign or export from a larger source. Leave Convert to sRGB on, because the document is in Adobe RGB, and set Metadata to None. Before exporting, zoom the preview to 100% and check the shadow edges for banding and the transparent areas for stray fills.