Compression can feel like a black box — a file goes in large and comes out small, and the process in between is easy to take for granted. The core ideas behind it are genuinely approachable without needing a technical background, and understanding them makes it much easier to predict how a specific image will respond to compression.

The basic idea: reducing redundancy

At its core, compression works by finding and removing redundant information — patterns that repeat or that can be predicted from surrounding data, so they don't need to be stored in full detail every single time. A photo of a clear blue sky has huge areas of very similar color values right next to each other; compression can represent that whole area far more efficiently than storing every individual pixel's exact value separately, since nearby pixels are so similar to begin with.

Why some images compress much better than others

This is exactly why a photo of a smooth, simple subject (a plain sky, a blurred background, a solid-colored wall) compresses to a much smaller file than a photo of a highly detailed, busy subject (a forest canopy, a crowd of people, intricate fabric texture) at the same pixel dimensions and quality setting. The busy image simply has less redundancy for the algorithm to exploit — more of its information is genuinely unique from pixel to pixel, so less of it can be discarded or simplified without a visible difference.

How lossy compression decides what to discard

Lossy algorithms like JPEG's are built around models of human visual perception — specifically, that people are much more sensitive to changes in brightness than to small changes in color, and much more sensitive to sharp edges than to subtle texture in a busy area. The algorithm prioritizes preserving the details people are most likely to notice missing, while more aggressively simplifying the details people are statistically less likely to notice, which is why well-designed lossy compression can shrink a file dramatically with a barely perceptible visual cost.

Why compression quality settings aren't linear

A quality setting of 90% doesn't produce a file exactly 10% smaller than a lossless original, and dropping from 90% to 80% doesn't save the same amount of file size as dropping from 50% to 40% — compression algorithms hit diminishing returns at different points depending on the specific image. This is why the practical advice for most photos is testing a couple of quality levels visually and picking the lowest one where quality loss still isn't noticeable, rather than assuming a specific percentage number will behave predictably across every image.

Why some editing steps make an image compress worse afterward

Certain edits, like adding film grain, noise, or a heavily textured filter, can make an image compress noticeably worse afterward, even though the edit itself didn't add meaningful visual information — because these effects specifically reduce the redundancy compression algorithms rely on, turning smooth, easily-compressed areas into busy, harder-to-compress ones. This is worth knowing when an edited image's file size jumps unexpectedly after applying a texture or grain effect, since the size increase is a direct, explainable consequence of reduced redundancy, not a bug.

Try the image tool yourself — free, instant, no upload to any server.

Open the tool

Frequently asked questions

Why does the same quality setting produce very different file sizes on different photos?

Because compression exploits redundancy in the image data, and how much redundancy exists depends entirely on the image's content — a simple, smooth image compresses much more efficiently than a highly detailed, busy one at the identical quality setting.

Is a 90% quality setting always noticeably better than 70%?

Not always noticeably, though it depends on the specific image and viewing conditions. Many photos show little to no visible difference between 90% and 70% quality, while a smaller number of detail-heavy images show a more noticeable difference.

Do compression algorithms actually know what humans notice?

They're built around general models of human visual perception (like reduced sensitivity to fine color detail compared to brightness), developed through research and testing, rather than analyzing each specific image for what a viewer would personally notice.