Sub topic 13
Know when Save for Web (Legacy) still helps
This chapter assumes you can already export with Export As and Quick Export. It also assumes you know the difference between JPEG, PNG and GIF, and what sRGB is. The goal is to decide when the older Save for Web (Legacy) dialog is the better tool and when it isn't.
What Save for Web (Legacy) is
Save for Web (Legacy) is the export dialog Photoshop used before Export As existed. You open it with File > Export > Save for Web (Legacy)... or with Alt+Shift+Ctrl+S (Windows) or Option+Shift+Cmd+S (macOS).
Adobe still ships it, but it is labeled "Legacy" and it is not where new export features appear. Treat it as a specialist tool. Export As and Quick Export are the defaults for most web work.
The dialog has these parts:
- Preview tabs: Original, Optimized, 2-Up and 4-Up. They let you compare your source against up to three compressed variants side by side.
- Preset menu and format list: GIF, JPEG, PNG-8, PNG-24 and WBMP.
- Format controls: these change with the format. They include quality, color count, dithering, matte, progressive or interlaced, and transparency.
- Color handling: a Convert to sRGB checkbox and an Embed Color Profile checkbox.
- Metadata menu: None, Copyright, Copyright and Contact Info, All Except Camera Info, or All.
- Image Size: width, height, percent and a resampling method.
- Status line: an estimated file size and download time at a connection speed you choose.
What it does that Export As does not
Export As is simpler, and it hides several controls. These are the cases where the legacy dialog still helps.
Animated GIF
If your document has a Timeline with frames, Save for Web (Legacy) can write them to an animated GIF. The dialog adds playback controls and a Looping Options menu with Once, Forever and Other. Export As writes a single still image. If you need a short animation for an email or a legacy platform, this is the straightforward route.
Indexed color control for GIF and PNG-8
GIF and PNG-8 store at most 256 colors, in a palette called a color table. Save for Web (Legacy) lets you control that palette:
- Colors: set the count, for example 32, 64 or 128. Fewer colors give a smaller file.
- Palette algorithm: Perceptual, Selective, Adaptive or Restrictive (Web).
- Dither: None, Diffusion, Pattern or Noise. Dithering scatters pixels of two palette colors to imitate a color that isn't in the palette. It hides banding in gradients but adds file size.
- Lossy (GIF): a higher value discards more detail for a smaller file.
- Color Table panel: you can lock specific colors so a brand color does not shift when the palette is rebuilt.
For flat graphics such as logos, icons and simple diagrams, reducing PNG-8 to 16 or 32 colors often cuts the file dramatically with no visible change.
Comparing variants before you commit
The 2-Up and 4-Up views show the same image at different settings, each with its own size estimate. Export As gives you a preview and an estimate, but only one setting at a time. When you are choosing between JPEG quality 60, PNG-8 with 64 colors and PNG-24, 4-Up lets you see all three at once.
Slices
If you cut a layout into slices with the Slice tool, Save for Web (Legacy) can export each slice with its own format and settings. In the save dialog, set Slices to All User Slices to write them all. This is mostly useful for old email templates and image-map layouts. For modern pages, exporting layers or artboards as separate assets is the better approach.
Fine control of metadata and the Matte color
The Metadata menu is explicit. Choosing Copyright or Copyright and Contact Info keeps only those fields, which is good for photographers. The Matte color setting also controls what color semi-transparent edges blend into when you export a format that has no real alpha channel, such as GIF.
What it lacks
Check these limits before you rely on it:
- It has no WebP or SVG output. The format list is GIF, JPEG, PNG-8, PNG-24 and WBMP.
- It does not export layers, artboards or multiple scales in one pass. Use Export As, Quick Export or Generate Image Assets for those.
- It is a modal dialog. You cannot keep editing while it is open.
- It does not follow your newer Quick Export format setting.
- It has no new features. Behavior and presets are frozen.
Choosing between the tools
Worked example: a small animated GIF
Suppose you have a 600 x 338 px banner with four timeline frames. The goal is a file under 500 KB for an email.
- Make sure the document is in RGB mode and, if possible, at 8 bits per channel.
- Open File > Export > Save for Web (Legacy)....
- Choose the GIF preset and switch to 2-Up so you can see the original and the optimized version.
- Set Colors to 128 and Dither to Diffusion at about 70%. Watch the size estimate.
- If the file is still too large, lower Colors to 64 or raise Lossy to about 10. Compare each result against the original.
- Under Image Size, set the width to 600 if you need to scale down. Leave the resampling method on Bicubic unless you are scaling up.
- Set Looping Options to Forever, or Once for an email where repeating motion would annoy people.
- Click Save, choose Images Only, and name the file.
Settings that behave differently from Export As
Two details trip people up when they switch tools.
Quality scales are not interchangeable. A JPEG quality of 60 in Save for Web (Legacy) does not produce the same file as 60 in Export As. Judge the result by looking at the preview and by file size.
Color conversion is explicit. Export As has its own sRGB option. In Save for Web (Legacy), make sure Convert to sRGB is checked, and decide separately whether to tick Embed Color Profile. For web images, converting to sRGB is the right default. Embedding adds a few KB and is usually unnecessary for sRGB, though it helps if you want a non-sRGB viewer to interpret the file correctly. Unchecking Convert to sRGB on a Display P3 or Adobe RGB document produces files that look dull or oversaturated in browsers.
Verify the output
After exporting, inspect the file outside Photoshop. This script uses the Pillow library (pip install pillow) to report the facts that matter for a GIF from this workflow.
import os
import sys
from PIL import Image
path = sys.argv[1]
with Image.open(path) as im:
frames = getattr(im, "n_frames", 1)
colors = im.convert("RGB").getcolors(maxcolors=1 << 24)
used = len(colors) if colors else "more than 16 million"
loop = im.info.get("loop", "absent (plays once)")
print(f"format: {im.format}")
print(f"dimensions: {im.width} x {im.height}")
print(f"frames: {frames}")
print(f"loop: {loop} (0 means forever)")
print(f"colors used: {used} (first frame)")
print(f"file size: {os.path.getsize(path) / 1024:.1f} KB")Run it as python check_gif.py banner.gif. Compare the output with your targets: the pixel dimensions, the number of frames, the looping value and the size in KB. For still images, also open the file in a browser and check that colors match the original and that transparent edges look clean on a dark and a light background.
Common errors
- Unexpected size: the preview was set to a zoom level above 100%, so you were judging a scaled image. Set the zoom to 100% before comparing quality.
- Halos around transparent edges in a GIF: the Matte color does not match the page background. Set it to the background color.
- Posterized gradients in PNG-8 or GIF: too few colors or no dither. Raise the color count or use diffusion dither. If the image is photographic, use JPEG or PNG-24 instead.
- Dull colors in the browser: Convert to sRGB was unchecked on a document that uses a wider color space.
- A single still image from an animated document: the format was not set to GIF, or the animation lives in video layers rather than the Timeline frames the dialog expects.
- Missing copyright info: the Metadata menu was set to None.
Exercise
You have a 12-frame loading animation with flat colors, and the email platform accepts only GIF files under 300 KB. Which export tool do you use, and which three settings do you adjust first to cut the file size?
Show answer
Use Save for Web (Legacy) with the GIF preset, because Export As cannot write animated GIFs from a Timeline. Reduce Colors (for example from 256 to 64 or 32), adjust Dither (lower it or turn it off, since dithering adds size), and raise Lossy. Use 2-Up or 4-Up to compare each variant against the original and check the size estimate. Then confirm the Looping Options and the final file size outside Photoshop.
Exercise
A colleague exports a logo as PNG-24 through Save for Web (Legacy) and asks why it is 80 KB when the same logo as PNG-8 with 16 colors is 6 KB. What should they check before switching?
Show answer
Check the 4-Up preview to confirm that the 16-color PNG-8 shows no visible banding, color shifts in brand colors or rough anti-aliased edges. If the logo is flat and the preview matches, PNG-8 is the better choice. If a color shifts, lock that color in the Color Table or raise the color count. Also check that transparency is preserved and that Convert to sRGB is enabled.