Sub topic 9
Saving JPEG: Quality, Compression Artifacts, and the Flattened Result
Prerequisites: you should know how to navigate the Photoshop workspace, what pixels and image dimensions mean, and how layers work. This chapter assumes you already have an open document and want to create a JPEG for delivery.
What JPEG saves
JPEG is a raster image format designed for photographs and other images with many colors. It uses lossy compression, which reduces file size by permanently discarding some image information. The discarded data is usually difficult to notice at high quality, but it becomes visible when you use lower quality settings or save the same JPEG repeatedly.
A JPEG stores the visible composite of your document. Photoshop therefore flattens the layer appearance for the JPEG result. The original layers, masks, adjustment layers, and smart objects are not available in the JPEG file.
| Document feature | Result in a JPEG |
|---|---|
| Visible layers | Combined into one image |
| Hidden layers | Not included in the visible result |
| Transparency | Replaced by a background color, usually white |
| Layer masks and smart objects | No longer editable as separate objects |
| Color profile | Can be embedded when the option is enabled |
Keep a layered PSD as your working master before creating a JPEG.
Set JPEG quality
When you use File > Save As or File > Save a Copy and choose JPEG, Photoshop displays JPEG Options. The quality value normally ranges from 0 to 12.
- Use 10–12 for high-quality photographs and archival delivery when JPEG is required.
- Use 7–9 for typical web images.
- Use lower values only when file size matters more than detail.
- Inspect the result at 100% zoom. Do not judge compression artifacts only from a zoomed-out view.
Higher quality usually produces a larger file. It does not restore detail that was already removed by an earlier JPEG save.
Recognize compression artifacts
Compression artifacts are unwanted changes introduced by lossy encoding. Common examples include:
- Block-shaped patterns around sharp edges
- Blurred text and fine texture
- Ringing, or bright and dark halos near high-contrast edges
- Color patches in smooth gradients
- Speckled detail in shadows
These artifacts are most obvious in screenshots, logos, line art, text, and images with repeated editing. A quality setting of 10 may still show artifacts around small text, so inspect important edges before delivery.
Save a JPEG copy
Use File > Save a Copy when you want to create a JPEG while keeping the current document associated with its PSD or another working file. Choose JPEG in the format list, set the quality, enable the color-profile option when available, and confirm the result by reopening it.
You can also automate the operation with ExtendScript:
// ExtendScript: save the active document as a JPEG copy
var doc = app.activeDocument;
var jpegOpts = new JPEGSaveOptions();
jpegOpts.quality = 10;
jpegOpts.embedColorProfile = true;
jpegOpts.formatOptions = FormatOptions.STANDARDBASELINE;
doc.saveAs(
new File("~/Desktop/banner.jpg"),
jpegOpts,
true,
Extension.LOWERCASE
);The true argument saves a copy, so the active document remains open with its current identity. Check the output folder and verify that the JPEG has the intended dimensions and appearance.
Exercise
You need a web photograph with no visible compression artifacts, but the layered PSD must remain editable. What should you do?
Show answer
Save the layered document as a PSD first, then save a JPEG copy at a high quality such as 10 or 12. Inspect the JPEG at 100% zoom before delivering it.