harmmy

Compressing images without wrecking them

A 4 MB photo is the usual reason a page feels slow. Here is how far you can push the quality slider before it shows.

2026-11-21

What the quality number actually does

The slider controls how aggressively the encoder throws away detail it thinks you will not notice. At 80% almost nobody can pick the compressed file out of a line-up. At 60% you start seeing blocks around hard edges and text. Below 40% it is a thumbnail, not a photo.

The percentage is not a promise about file size. A noisy photo at 80% can be larger than a smooth one at 60%.

Pick the format before you touch the slider

Photographs belong in JPEG. Screenshots, diagrams and anything with flat colour and text belong in PNG, where the file gets smaller without any detail loss. For the web, WebP usually beats both at the same visual quality.

Converting a PNG screenshot to JPEG to save space is the wrong trade: text turns fuzzy and the file often gets bigger anyway.

Resize first, compress second

A 6000 px camera file displayed at 800 px is carrying five times more pixels than the screen can use. Resizing to roughly twice the display size and then compressing gives a far smaller file than compressing alone, with no visible difference.

Never resize after compressing — re-encoding throws away the compression you just paid for.

How to tell you went too far

Zoom to 200% and look at two places: the boundary between a subject and the background, and any smooth gradient such as a sky or a wall. Blocking and banding show up there first. If you cannot see it at 200%, nobody will see it at 100%.

Related tools

Compressing images without wrecking them | harmmy