By Relwick · Published
One export at quality 80 is smaller than another export labelled 80. That does not by itself prove that either program ignored the setting or produced a defective file.
Make the comparison about the resulting image, with the other variables controlled.
Quick answer & key takeaways
A JPEG quality setting belongs to an encoder’s controls; the same displayed number in another tool does not guarantee identical bytes or visual detail. Other settings, such as colour subsampling and resizing, can also differ. Compare outputs made from the same source at the same dimensions, measure their actual sizes, and inspect the details needed for your task. Do not rank tools by slider numbers alone.
- A matching quality number is not a complete matching configuration.
- Use the same original and pixel dimensions for comparisons.
- Judge actual bytes and task-relevant detail in the output.
Recognise encoder-specific controls
MDN documents the browser canvas quality parameter on a zero-to-one range. Sharp documents JPEG quality alongside separate options such as chroma subsampling and encoder choices. These interfaces demonstrate why a single displayed quality value is only part of the encoding setup.
Do not infer a universal conversion between sliders based only on their maximum values. A label such as high, 80, or 0.8 describes that tool’s setting; it does not supply a complete reproducible recipe across implementations.
Control the comparison before judging it
| Variable | Keep or record |
|---|---|
| Source | Use the same original file, not a previous compressed output. |
| Dimensions and crop | Match the output grid and included content. |
| Format | Confirm both files are actual JPEGs. |
| Other encoding options | Record any available subsampling or optimisation settings. |
If one tool also shrinks the image, its smaller file cannot be attributed to the quality setting alone. Similarly, a source with a different crop or colour treatment no longer provides a controlled comparison.
Compare useful detail and measured bytes
Inspect both saved results at the same viewing scale. For a portrait, examine facial detail and natural edges; for a document, read small text and coloured marks. Measure actual file bytes instead of relying on a rounded size label.
Image compressor evaluates generated candidates against the requested size target. A target-fitting result still needs visual inspection. The quality-100 guide explains why the highest lossy setting is not proof of unchanged pixels.
Record the choice that solved the task
Keep the selected source, dimensions, output format, target size, and resulting file together. If you need repeatable production, record the actual application and relevant version or encoder configuration as well.
The goal is a suitable output under the real constraints, not the highest number on a slider. When comparing different kinds of images, remember that even identical dimensions and settings can produce very different sizes, as shown in the synthetic JPEG comparison.
Frequently asked questions
Does quality 80 mean the file retains 80% of the original information?
No. It is an encoder setting, not a direct percentage of preserved information.
Can I compare tools if one changes the dimensions?
You can compare their outputs for your task, but not attribute the difference solely to a matching quality value.
Which output should I keep?
Keep the one that meets the actual format and size constraints while preserving the detail you need, alongside the original master.
Sources and further reading
- MDN: canvas toBlob quality parameter — Documents the browser API’s quality parameter and supported output-format behaviour.
- Sharp: JPEG output options — Documents quality alongside subsampling, progressive output, and additional JPEG encoder options.
Summary
Compare complete outputs under controlled conditions. The useful evidence is the saved file and its retained detail, not an isolated quality label.