Skip to content
Tutorials Center
My learning

Topics

Lesson 30 of 37 ยท Automation and Export

Exporting for Screens and the Web

Choose the right file format and export method in Photoshop: Export As, Quick Export, Save for Web, Generate Image Assets, and size images for 1x, 2x and 3x.

Saving a layered .psd is for you. Exporting is for everyone else. A good export has the right format, the right dimensions, the right color space and the smallest size that still looks good.

Choosing a format

Format Best for Notes
PSD / PSB Your working file Keeps layers, masks, text, smart objects. PSB for files over 2 GB or 30,000 px
JPEG Photos Lossy, no transparency. Quality 60-80% is usually enough for the web
PNG Logos, UI, screenshots, anything with transparency Lossless. PNG-8 (256 colors) or PNG-24
GIF Simple animation, tiny graphics 256 colors only; WebP or video is usually better
WebP Modern web images Smaller than JPEG/PNG; supports transparency
SVG Vector icons Export only works for simple shape layers
TIFF Print and archive Lossless, large, optional layers
PDF Print proofs, multi-page Can keep vectors and live text

Photoshop Export As covers PNG, JPG, GIF, SVG and (in recent versions) WebP, depending on your version. Check the format menu in your own installation, because the list has grown with releases.

Quick Export

File > Export > Quick Export as PNG (or the format you set in Preferences > Export) saves the whole document with one click and asks only for a location. Set the default format in Edit > Preferences > Export.

Export As

File > Export > Export As (Alt+Shift+Ctrl+W) opens a dialog with a preview on the right and settings on the left:

  • Format: PNG, JPG, GIF, SVG and others.
  • Quality for JPG (a slider from 0-100%) and Transparency for PNG. For PNG, tick Smaller File (8-bit) to reduce colors.
  • Image Size: change width and height or scale (1x, 2x, 3x, 0.5x) and choose the resample method.
  • Canvas Size.
  • Color Space: Convert to sRGB and Embed Color Profile. Always convert to sRGB for the web.
  • Metadata: None, Copyright and Contact, or All.

You can export a whole document, selected layers (right-click layers and choose Export As), or artboards.

Save for Web (Legacy)

File > Export > Save for Web (Legacy) (Alt+Shift+Ctrl+S) is the older dialog, still popular because it shows 2-up and 4-up comparison previews and an estimated download time. It offers presets (JPEG High, PNG-24, GIF 128 Dithered) and a Max file size target for JPG. Keep using it when you need to compare file sizes side by side, but remember it is marked legacy and may disappear.

Sizing: pixels, not DPI

On screens, only the pixel dimensions matter. The "72 ppi" setting is just metadata; a 1200 x 800 pixel image looks identical at 72 or 300 ppi on a web page. Decide the target display size, then export that size multiplied by the screen density you want to support:

  • 1x for standard screens.
  • 2x for most phones, tablets and laptops with high-density displays.
  • 3x for the sharpest phones.

Export As has a Scale table where you can add several scales at once (1x, 2x, 3x) with suffixes such as @2x.

Python Stand-in: pixel sizes for 1x, 2x and 3x

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Estimating file size

An uncompressed image uses width x height x channels x bytes per channel bytes. This is the raw memory size, and it shows why compression matters. JPEG, PNG and WebP shrink it by very different amounts depending on the image.

Python Stand-in: raw size versus a typical compressed estimate

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The ratios in the last loop are assumptions for illustration only; a photo of noisy foliage compresses far worse than a smooth gradient. Always read the real file size in the export preview.

Slices and artboards

  • Slices (Slice tool, C shared with Crop): divide a layout into rectangles that Save for Web exports separately.
  • Artboards: create with the Artboard tool or Layer > New > Artboard from Layers. Each artboard can be exported as its own file: right-click it and choose Quick Export as, or use File > Export > Export As with several artboards selected.

Generate Image Assets

Turn on File > Generate > Image Assets. Then name layers or groups like image files: logo.png, hero.jpg90, icon.svg or [email protected]. Photoshop writes each file to a -assets folder next to the PSD, and updates it whenever you change the layer. Common suffixes:

  • .jpg followed by a quality, such as hero.jpg85.
  • .png or .png8, .png24, .png32 for different bit depths.
  • .webp and .svg in supported versions.
  • 200% or 50x50 in the name to set the scale or size. A comma lets one layer produce several files: icon.png, [email protected].

Web checklist

  1. Resize to the final pixel dimensions first (Image > Image Size, Resample: Automatic or Preserve Details).
  2. Convert to sRGB (Edit > Convert to Profile).
  3. Sharpen lightly after downsizing (Filter > Sharpen > Smart Sharpen).
  4. Export JPG for photos, PNG for flat graphics, WebP when the target supports it.
  5. Check the size: hero images under ~200 KB, thumbnails far smaller.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which format is the best choice for a logo with a transparent background?

    PNG is lossless and supports transparency; JPEG cannot hold transparency.
  2. 2. A 400 x 300 px graphic needs to be sharp on 2x screens. What size should you export?

    2x means double the pixel dimensions: 800 x 600.
  3. 3. What is the raw (uncompressed) size of a 1000 x 1000 px 8-bit RGB image?

    1000 x 1000 x 3 bytes = 3,000,000 bytes, about 2.9 MiB.
  4. 4. Why convert to sRGB when exporting for the web?

    sRGB is the web's default color space, and wide-gamut images can look dull or wrong without conversion.

Summary

  • Keep a layered PSD for editing and export copies in the right format: JPG for photos, PNG for flat graphics and transparency, WebP where supported.
  • Use Quick Export, Export As, Save for Web (Legacy) or Generate Image Assets depending on how many files you need.
  • Only pixel dimensions matter on screens; export 1x, 2x and 3x versions.
  • Convert to sRGB and check the real file size.

Next: Print, Color Management and Soft Proofing