An image compression test: a JPEG saved at quality 100 still changed 32.9% of the colour values in our test photo. Quality 100 is not lossless. It is just expensive.
Same 4964 × 2782 photo, every file kept all its pixels:
- q100: 5,276.8 KB
- q90: 1,138.1 KB
- q80: 668.0 KB
- q75: 542.3 KB
Going from 100 to 80 drops 87% of the bytes. At 2x zoom, side by side, q80 and q90 look the same.
Why 100 still loses
JPEG throws data away in two steps that quality doesn't control:
- Chroma subsampling. Many encoders (Pillow and sharp by default) store colour at half resolution, even at q100.
- Colour conversion and rounding. RGB to YCbCr and back rounds every pixel.
Quality only scales the quantization tables. At 100 they are all 1s, but the other two losses remain.
Re-saving: the first save does the damage
We saved the photo at q75 ten times in a row. The first save did almost all the damage. Later saves at the same quality in the same encoder barely changed it (253.3 KB → 251.9 KB on our test image). A save at a different quality, or in another app, rounds differently and loses more.
What to ship
- Screens: q80 is plenty. Try q75 for big heroes.
- Prints and heavy crops: q90.
- q100: almost never. If you need exact pixels, use PNG or lossless WebP.
Quick test for your next image: save it at 80 and at 90, open both at 100% zoom, keep the smaller one unless you can point at the difference.
Do you hard-code a quality in your pipeline, or let the encoder choose per image?
The same photo taken all the way down to quality 1, with crops: https://blinkimg.com/lower-image-quality?utm_source=devto&utm_medium=social&utm_campaign=jpeg-q100



