Sub topic 7
Balance Quality and File Size
This chapter assumes you know how to open a Photoshop document, work with layers, and use the Export As dialog. The goal is to choose the smallest file that still looks correct at its final display size.
A smaller file loads faster and uses less storage. However, excessive compression can create blocky edges, blurry text, banding in gradients, or visible halos. Judge the exported image at 100% view and at the size people will see it.
Understand what affects file size
File size depends mainly on these factors:
- Pixel dimensions: More pixels require more data.
- Format: JPEG, PNG, GIF, and WebP use different compression methods.
- Quality: Higher JPEG or WebP quality usually creates a larger file.
- Image content: A detailed photo often compresses better than noise, texture, or fine grain.
- Metadata: Profiles, copyright information, and camera data add some extra bytes.
The format should fit the image before you adjust quality.
| Image content | Starting format | Main setting to adjust |
|---|---|---|
| Photograph without transparency | JPEG or WebP | Quality |
| Logo or graphic with transparency | PNG or WebP | Transparency and dimensions |
| Simple animation | GIF or animated WebP | Color count and dimensions |
| Flat vector-style artwork | SVG, when supported | Vector structure and effects |
Compare quality in Export As
Open File > Export > Export As. Choose JPEG or WebP when the image is photographic and does not need transparency. Start around 75 to 85 quality, then inspect the preview.
Look for problems in:
- High-contrast edges, such as hair, branches, and text
- Smooth gradients, such as skies
- Repeated details, such as fabric or foliage
- Shadow areas, where compression noise can become obvious
If artifacts are visible, increase quality. If the image looks clean, lower quality until you find the smallest acceptable file. Do not judge only by the percentage. A quality value of 80 in one format is not directly equivalent to 80 in another.
PNG is usually a poor choice for a large photograph because it preserves more information and can create a much larger file. It is useful when you need transparency, sharp flat-color graphics, or exact pixel edges. For a transparent image, compare PNG with WebP if your destination supports WebP.
Use the preview and test the actual file
Export As shows an estimated file size. Use it to compare settings, but verify the file after export. Open the exported file in an image viewer or browser and check its dimensions, appearance, transparency, and file size.
A practical workflow is:
- Set the required pixel dimensions.
- Choose a format that matches the content.
- Set an initial quality value.
- Inspect detailed and smooth areas at 100%.
- Lower quality in small steps until artifacts appear.
- Increase the setting one step and export.
- Compare the result at its real display size.
Exercise
A large photograph has no transparency. Its JPEG export contains visible blocks around text, and the file is larger than the website limit. What should you try first?
Show answer
Confirm the pixel dimensions, then test WebP or JPEG at a slightly lower quality while inspecting the text at 100 percent. Do not solve the problem by lowering quality drastically.