File size, dimensions and quality: three numbers that are not the same thing

Pixels, kilobytes and quality settings measure different things, which is why fixing one number sometimes leaves the other two unchanged. This explainer shows how to tell which number is actually causing your problem.

Designer banner with bold headline Size vs Quality beside three framed mountain photos in different sizes on charcoal and orange shapes
Size vs Quality — three numbers that are not the same thing
On this page
  1. Dimensions: how many pixels wide and tall
  2. File size: how many kilobytes the file takes up
  3. Quality: how much detail compression throws away
  4. How the three interact in real problems

A form tells you the file is too large. A friend tells you the photo looks blurry. A portal tells you the dimensions are wrong. Three different complaints, and I have wasted an afternoon treating them as one problem. They are not. File size, dimensions and quality each answer a different question, and once you know which number is actually at fault, the fix gets a lot shorter.

Dimensions: how many pixels wide and tall

Dimensions are the grid. How many pixels across, how many down, that is all they measure. A photo that is 4000 pixels wide and 3000 tall has a grid of twelve million pixels, and that grid decides how big you can show the image before it starts to look soft. When a portal asks for a photo of a certain pixel size, this is the number it means.

What dimensions never tell you is how heavy the file is. Two photos with the same dimensions can have very different file sizes. I have seen that catch people out again and again. They shrink the grid, upload again, and get the same rejection, because dimensions were never the problem in the first place.

Resizing changes the grid itself. Make it smaller and you throw pixels away. That is fine if the image will only ever be viewed small. It is a bad trade if you might print it large later, or crop into it. I keep the aspect ratio locked while I resize, unless I have a real reason to change the shape. Stretching does not just make the picture smaller. It changes the picture. The guide to resizing without distortion explains aspect ratio, fit, crop and stretch with examples.

File size: how many kilobytes the file takes up

File size, usually shown in KB or MB, is how much storage the encoded file needs. Dimensions feed into it, sure, but so do the format and the compression. A photo of a plain sky compresses far smaller than a photo of a busy street at the same dimensions. There is simply less detail to store in the sky.

That is why two images that look near identical on screen can differ greatly in size. And it is why a target like "under 200 KB" can be easy for one photo and impossible for another without also shrinking the grid. Same target, same screen, completely different job. I wish more forms said that upfront.

So when a file is too large, work out which lever you actually need. If the dimensions are already at or below what is required, compression is the lever left. A lower quality setting, or a more efficient format. If the dimensions are far larger than needed, resize first, then compress. A smaller grid needs less data at any quality, so you get more out of every quality step you take after that. The target-KB compression guide covers the case where a target cannot be reached without changing dimensions, and the screenshots guide explains why some images start out so large.

Quality: how much detail compression throws away

Quality is a setting, not a measurement. That distinction trips people up more than anything else in this whole topic. In JPEG-style compression, a higher quality setting keeps more detail and produces a larger file. A lower setting discards more detail and produces a smaller file. Simple enough. The trade-off is not linear, though, and that is the part worth knowing.

The first steps down from maximum quality usually shrink the file a lot while the picture still looks the same. I would call that the free win. The damage only becomes obvious at much lower settings, where smooth areas break into blocks and edges smear. Push it that far and there is no hiding it.

Recompressing an already compressed image hurts more than compressing the original once. Each round throws away detail that the next round cannot get back. You cannot recover what an earlier save already dropped.

Two practical consequences follow from that. First, always compress from the best original you have, not from a copy that a chat app already shrank. Start with the shrunk copy and you are throwing away detail twice. Second, judge the result at the size it will actually be viewed at. A file that looks rough at full zoom can look perfectly fine as a form upload or a listing photo. Chasing perfection at full zoom wastes file size for no visible benefit, and I have done exactly that more times than I care to admit. The guide to blurry compression shows what each kind of damage looks like.

How the three interact in real problems

Most everyday problems are one of three patterns, and naming the pattern is half the fix. If the portal rejects the file for size but the dimensions are already small, the problem is compression. Lower the quality or change the format. If the portal rejects the dimensions, the problem is the grid. Resize to the required pixels, then recheck the size, because resizing usually changes it. If the photo looks blurry after you fixed the size, you squeezed too hard on quality or resized too far. Start again from the original with a gentler setting or a smaller reduction. Starting over sounds slow. It is faster than patching a file that has already lost detail.

PDFs follow the same logic with one extra twist. Merging PDFs never compresses anything. It copies pages unchanged, so a merged file stays large even when every page looks fine on its own. I have watched people merge, re-merge, and wonder why nothing changed. Nothing changed because merging was never going to shrink anything. The merged-PDF guide explains what to do instead. And if you are choosing the format before you even start, the PDF-or-image comparison covers when a PDF is worth it. Once you can name which of the three numbers is wrong, the fix is usually one tool and one setting, not a round of guessing. The same discipline helps when you are preparing files for a form: the documents upload checklist puts these checks in order.

Examples in this post are illustrative. Tool limits and formats are described as they work today; check the tool page if anything changes. Report a correction.

Comments

No comments yet.

Leave a comment

Comments appear after review. Please do not submit personal information.