Sub topic 6
Export with the Export As dialog
This chapter assumes you can navigate layers, the canvas, and menus in Photoshop. It also assumes you know that pixel dimensions, not print units like inches or DPI, decide how large an image appears on screen. The earlier chapters on dimensions, sRGB, and formats supply the reasoning. Here you apply it in one dialog.
What Export As does
Export As is the main web-export dialog in current Photoshop. Open it with File > Export > Export As.... The shortcut is Alt+Shift+Ctrl+W on Windows and Opt+Shift+Cmd+W on macOS.
It gives you a live preview and puts format, quality, size, and color settings in one place. It never changes your PSD. It writes a new file from the current composite, so you can keep editing the source afterward.
Export As differs from Save As in three ways:
- It exports the flattened result of all visible layers, not the layer structure.
- It exposes web-specific options such as a quality slider and sRGB conversion.
- It supports exporting selected layers or artboards when you start from the Layers panel (right-click, then Export As...).
The layout of the dialog
The dialog has a preview on the left and settings on the right. Names vary slightly between Photoshop versions, so look for these groups.
| Group | Controls | What it decides |
|---|---|---|
| File Settings | Format, Quality or Transparency, Smaller File, Metadata | Encoding and file size |
| Image Size | Width, Height, Scale, Resample | Output pixel dimensions |
| Canvas Size | Width, Height, Canvas Size | Cropping or padding of the canvas |
| Color Space | Convert to sRGB, Embed Color Profile | How colors render in browsers |
| Preview | Zoom, file size readout | Visual and numeric check |
The file size readout near the preview is the number to watch. It updates as you change settings, so it works like a tuning gauge.
Work through the settings in order
The order matters because some settings affect the file size shown for later ones. A reliable order is format, size, color, then quality.
1. Choose the format
Pick the format from the Format menu. Typical choices are PNG, JPG, GIF, SVG, and, in recent versions, WebP.
- Use JPG for photographs. It does not store transparency.
- Use PNG for flat graphics, screenshots, and anything with transparency.
- Use GIF only when you need a simple animation or must support a legacy target.
- Use SVG for simple vector shapes. Photoshop writes layers with shapes as vector paths where it can, but photographic or heavily effected layers are embedded as raster data, which gives a large, pointless file.
- Use WebP when your destination supports it. It usually beats JPG and PNG on size at equal visible quality.
If a format you expect is missing, check your Photoshop version and the Export preferences (Edit > Preferences > Export on Windows, Photoshop > Settings > Export on macOS).
2. Set the pixel dimensions
Under Image Size, type the width or height. With the link icon on, the other value follows and the aspect ratio holds. You can also pick a Scale such as 0.5x, 1x, 2x, or 3x, which multiplies the document's current size.
Set the Resample method deliberately:
- Bicubic Automatic is a good default.
- Bicubic Sharper (reduction) or a similar option suits downsizing, because shrinking can soften detail.
- Nearest Neighbor keeps hard pixel edges. Use it for pixel art, and avoid it for photos.
- Preserve Details 2.0 (a name that may vary) is meant for enlarging, but upscaling still cannot add real detail.
A common mistake is exporting a 6000 px photo at full size and relying on CSS to shrink it. The browser still downloads every byte. Resize here to the largest size the page will actually display, and add a 2x version for high-density screens if needed.
3. Convert to sRGB
In Color Space, turn on Convert to sRGB. This converts the pixel values from your document profile (for example Adobe RGB or Display P3) to sRGB before writing the file. Also turn on Embed Color Profile if you want the profile tagged inside the file.
Conversion and embedding do different jobs:
- Conversion changes the numbers so colors look right on typical screens.
- Embedding adds a label that says which profile the numbers use.
If you skip conversion and the browser ignores or mishandles the embedded profile, saturated colors can look dull or shifted. If your file is already in sRGB, converting changes nothing and is harmless.
4. Adjust quality or transparency
What appears depends on the format:
- JPG: a Quality slider (often shown as a percentage). Lower values shrink the file and add artifacts such as blocky areas and ringing around edges.
- PNG: a Smaller File (8-bit) checkbox and a Transparency checkbox. PNG is lossless, so the 8-bit option reduces the palette to 256 colors, which can cause banding in gradients.
- GIF: a Transparency checkbox. It always uses at most 256 colors.
- WebP: a quality control, plus a lossless option in some versions.
Transparency applies to formats that support it. For JPG, transparent regions fill with a solid color, usually white, so check how that matches your page background.
5. Decide on metadata
The Metadata setting offers choices such as None and Copyright and Contact Info. Some versions add a broader option. Choose None for the smallest file and for privacy, since camera or location data can be embedded in the original. Choose the copyright option when attribution matters.
6. Read the preview, then export
Set the preview zoom to 100% to judge sharpness at the real size. Pan to areas with hard edges, text, and smooth gradients, because those show compression damage first. Watch the file size readout as you move the quality slider.
When satisfied, click Export, pick a folder and file name, and confirm. The exported file is separate from the PSD.
Export selected layers or artboards
You can start Export As from a selection instead of the whole document. In the Layers panel, right-click a layer, group, or artboard and choose Export As.... The dialog then shows only that item.
If you select several items, the dialog lists them in a left panel. Each one can have its own format and settings, and you can export all of them in one pass. You can also add several scales (for example 1x and 2x) with an optional suffix such as @2x. The later chapters on scales and multi-asset export cover this in detail.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Colors look duller on the web | Document in Adobe RGB or another wide profile, not converted | Turn on Convert to sRGB |
| Exported image is much bigger than the page needs | Dimensions left at document size | Set width and height to the displayed size |
| Edges of a logo look jagged or fuzzy | Wrong resample method for the content | Use Bicubic Automatic or Sharper for reduction; Nearest Neighbor only for pixel art |
| Gradients show visible bands in PNG | Smaller File (8-bit) enabled | Turn it off, or switch to JPG or WebP |
| Transparent area turns white | JPG does not support transparency | Use PNG or WebP, or match the page background |
| Wrong layer exported | Started from the menu with no selection, so the whole document was used | Right-click the layer in the Layers panel and choose Export As |
Verify the result with a script
After exporting, confirm the dimensions, format, and file size instead of trusting the dialog. This Python script uses the Pillow library (pip install pillow).
from pathlib import Path
from PIL import Image
def report(path: str) -> None:
p = Path(path)
with Image.open(p) as im:
has_alpha = im.mode in ("RGBA", "LA") or "transparency" in im.info
profile = "embedded" if im.info.get("icc_profile") else "none"
print(f"{p.name}: {im.format}, {im.width}x{im.height}px, "
f"{p.stat().st_size / 1024:.1f} KB, alpha={has_alpha}, icc={profile}")
if __name__ == "__main__":
import sys
for arg in sys.argv[1:]:
report(arg)Run it as python report.py hero.jpg icon.png. Check that the pixel size matches what you intended, that the size in KB is reasonable, and that alpha appears only where you expect it.
Exercise
You export a product photo from a PSD that uses the Adobe RGB profile. Visitors say the colors look flatter than in Photoshop. The file is a JPG at the full 5000 px width, the page shows it at 1000 px, and the file is 3.2 MB. Which three settings in Export As would you change, and why?
Show answer
Turn on Convert to sRGB (and optionally Embed Color Profile) so the Adobe RGB values are converted for browsers, which fixes the flat colors. Set the width to about 1000 px (or 2000 px if you also want a 2x version) so visitors do not download pixels the page never shows. Lower the JPG quality until artifacts start to appear at 100% zoom in the preview, then step back up slightly, to reduce the 3.2 MB file further.