What Does It Mean to Properly Size an Image?#
A properly sized image is one whose file has about as many pixels as the screen draws for it: its displayed width and height in CSS pixels, times the screen's device pixel ratio. A file larger than that is oversized. The browser downloads every pixel and then shrinks the picture to fit, so the extra pixels cost bandwidth and loading time and add nothing anyone can see.
Lab audits used to report this as a standalone check called "Properly size images". Since October 2025 it is one part of the "Improve image delivery" insight, which also flags images in older formats, images with too little compression and large animated GIFs. Chrome DevTools describes the insight as one that "highlights images that have unnecessarily large download sizes" (Chrome for Developers, Improve image delivery). This guide covers the size part: how an oversized image is detected, how the waste is estimated and how to fix it.
Key Facts (TL;DR)
- The target: the file's width and height should not exceed the displayed size × the device pixel ratio of the screen showing it.
- The estimate: wasted share = 1 − displayed pixels ÷ file pixels, and estimated waste = that share × the file's size in bytes.
- The threshold: an image is reported only when the estimated saving is more than 4 KiB. If the image already uses
srcsetor<picture>, up to 12 KiB of size waste is tolerated. - Area, not width: a file twice as wide and twice as tall as needed has four times the pixels, so about three quarters of its bytes are waste.
- Not scored: the insight is informative and does not change the performance score, but the bytes it saves load sooner — often the bytes of the largest image on the page.
- The fix:
srcsetwith width descriptors and an accuratesizesattribute, or a2xfile for fixed-size images.
How Is an Oversized Image Detected?#
The check looks at each image painted while the page loaded and compares two pixel counts:
- The displayed size — the image's width and height on the page in CSS pixels, multiplied by the device pixel ratio of the test device. There is no cap: a screen with a ratio of 3 needs three times the CSS width.
- The file size in pixels — the natural width × height of the file that was downloaded.
- The waste — the share of file pixels that are not displayed, applied to the file's bytes. A file with four times the pixels it needs is estimated to waste three quarters of its bytes.
For a 1,600 × 900 hero of 200.0 KiB shown at 400 × 225 CSS pixels on a DPR-2 phone, the screen draws 800 × 450 pixels. That is a quarter of the file's pixels, so the estimated waste is 150.0 KiB.
| Example | File | Displayed (CSS px) | Pixels needed | Estimated waste | Reported? |
|---|---|---|---|---|---|
| Hero, no srcset, on a DPR-2 phone | 1600 × 900, 200.0 KiB | 400 × 225 | 800 × 450 | 150.0 KiB (75%) | Yes |
| The same hero on a DPR-1 screen | 1600 × 900, 200.0 KiB | 400 × 225 | 400 × 225 | 187.5 KiB (94%) | Yes |
| Thumbnail, no srcset, DPR 1 | 300 × 300, 18.0 KiB | 240 × 240 | 240 × 240 | 6.5 KiB (36%) | Yes |
| The same thumbnail with srcset | 300 × 300, 18.0 KiB | 240 × 240 | 240 × 240 | 6.5 KiB (36%) | No |
| 2× logo on a DPR-2 screen | 320 × 80, 9.0 KiB | 160 × 40 | 320 × 80 | none | No |
The thumbnail rows show the two thresholds at work. Without srcset, its 6.5 KiB of waste is over the 4 KiB line and it is reported. With srcset, the same waste is under the 12 KiB allowance for images that already offer several sizes, so it is not.
View the data as a table
| File vs displayed size | Estimated waste |
|---|---|
| 1× (right-sized) | 0 KB |
| 1.5× wider and taller | 444 KB |
| 2× wider and taller | 600 KB |
| 3× wider and taller | 711 KB |
| 4× wider and taller | 750 KB |
Source: worked example from this article, using the image delivery insight's waste estimate.
Which images are left out
SVG images are skipped entirely, since a vector has no fixed pixel size. CSS background images are skipped for the size check, though their format and compression are still checked. And only images painted during the recorded page load are considered, so an image that is lazy-loaded further down the page and never painted is not measured.
Why Do Oversized Images Matter?#
- They delay the largest image. The insight's own description says reducing image download time "can improve the perceived load time of the page and LCP". When the LCP element is an image, every wasted byte is downloaded before it can finish painting.
- They cost visitors data. Bytes that are never displayed still count against a mobile data plan.
- They are common on the largest image. In Greadme's own audits, oversizing was the most frequent reason the image delivery check flagged an LCP image (below).
How to Properly Size Images#
1. Use srcset with width descriptors and sizes
For an image whose width follows the layout, list several widths of the same picture and tell the browser how wide the image will be displayed. The browser divides each candidate's width by the slot width to get its density and picks one that suits the screen (MDN, Responsive images).
<img
src="hero-800.jpg"
srcset="hero-400.jpg 400w, hero-800.jpg 800w,
hero-1200.jpg 1200w, hero-1600.jpg 1600w"
sizes="(max-width: 640px) 100vw, 50vw"
width="1600" height="900"
alt="Team at the product launch">2. Make sizes match your CSS
Without a sizes attribute the browser assumes the image fills the whole viewport (100vw). An image in a one-third column then downloads a file about three times wider than needed — oversized despite a perfect srcset. Write sizes from the layout's real widths at each breakpoint.
<!-- Missing sizes: the browser assumes 100vw -->
<img srcset="card-400.jpg 400w, card-800.jpg 800w, card-1200.jpg 1200w" src="card-800.jpg" alt="">
<!-- sizes from the layout: full width on phones, a third of the page above 900px -->
<img srcset="card-400.jpg 400w, card-800.jpg 800w, card-1200.jpg 1200w"
sizes="(max-width: 900px) 100vw, 33vw" src="card-800.jpg" alt="">3. Pick widths that cover real screens, and no more
The largest candidate needs to cover the widest slot × the highest pixel ratio you care about; anything wider is pure waste. Steps of a few hundred pixels between candidates keep the chosen file close to the slot. If the largest file is too small instead, the image turns blurry — the opposite problem, covered in the low-resolution images guide.
4. Use 1x and 2x files for fixed-size images
A logo, avatar or icon that is always shown at the same CSS size needs only two files: one at its displayed size and one at twice that. A DPR-1 screen can take the small one, and nothing larger is downloaded.
<img src="logo-160.png" srcset="logo-320.png 2x"
width="160" height="40" alt="Greadme">5. Resize uploads instead of shrinking them with CSS
CSS can display a 4,000-pixel camera original at 600 pixels, but the browser still downloads all 4,000. Resize on upload, let the CMS generate a set of widths and output them as srcset, or put the media library behind an image service that resizes from URL parameters. Framework image components that generate the widths and the srcset for you do the same job; they still need a correct sizes.
6. Give CSS backgrounds a resolution choice
The size check skips CSS background images, but a 2,000-pixel background on a phone is just as wasteful. image-set() lets the browser pick from several files, mainly by pixel density (MDN, image-set()); a media query can switch to a smaller file on narrow screens.
7. Fix the format and the layout while you are there
The same insight checks format and compression, so a right-sized file is the moment to switch it to a modern format. Keep the width and height attributes so the browser reserves the slot (see unsized images), load the LCP image eagerly with fetchpriority="high", and lazy-load images further down the page (see offscreen images).
How to Find Oversized Images on Your Site#
- Greadme Page Audit — the "Images Not Optimally Delivered" card lists each flagged image with its resource size, the potential saving and the saving as a share of the file, with a copy-ready prompt for your AI assistant.
- Chrome DevTools, Performance panel — record a page load and open the "Improve image delivery" insight; each image shows its file and displayed dimensions and the estimated saving.
- Chrome DevTools, Elements and Console — select an image and compare
$0.naturalWidthwith its rendered width ×devicePixelRatio;$0.currentSrcshows whichsrcsetcandidate the browser chose.
Common Causes and Their Fixes#
Problem: One large file for every screen
What's happening: the page has <img src="hero-2000.jpg"> with no srcset, so a phone downloads the same file as a wide desktop screen.
Fix: generate several widths and add srcset with width descriptors and a sizes attribute.
Problem: srcset without an accurate sizes
What's happening: the candidates exist, but sizes is missing or says 100vw for an image in a narrow column, so the browser picks a file sized for the full viewport.
Fix: set sizes to the real displayed width at each breakpoint.
Problem: Camera originals in the media library
What's happening: editors upload multi-megapixel photos and the theme outputs the original into a 600-pixel column.
Fix: have the CMS generate a set of widths on upload and output them as srcset, or resize through an image service.
Problem: A thumbnail served from the full-size file
What's happening: a product grid reuses the 1,200-pixel product photo for a 200-pixel card.
Fix: output the CMS's thumbnail size for grids, with a 2x candidate for high-density screens.
FAQ#
What happened to the "Properly size images" audit?
In October 2025 it was folded into the "Improve image delivery" insight, together with the checks for modern formats, compression and animated GIFs. The idea is the same — an image larger than its displayed size wastes bytes — and the insight now lists every reason an image could be smaller in one place.
What is the threshold?
An image is reported when its estimated saving is more than 4 KiB. For an image that already uses srcset or <picture>, the size part is reported only above 12 KiB, because the page has already made an effort to offer several sizes.
Does the check account for high-density screens?
Yes. The displayed size is multiplied by the device pixel ratio of the test device, with no cap. An image shown at 400 CSS pixels on a DPR-2 phone needs an 800-pixel file before anything counts as waste. (The separate check for blurry, too-small images rounds the ratio down to at most 2 — see the low-resolution images guide.)
Does it affect my performance score?
Not directly: the insight is informative and does not feed the score. Its fix can still move the score, because a smaller LCP image finishes loading sooner and LCP is part of the score.
Why is a 2× oversize a 4× byte cost?
Because an image's pixel count is its width times its height. Doubling both quadruples the pixels, and the size check estimates the bytes in proportion to the pixels: three quarters of such a file are counted as waste.
Can I resize the image with CSS and ignore the warning?
No. CSS changes how large the image is drawn, not which file is downloaded. The full file still travels over the network, which is exactly what the check measures.
Conclusion#
An image is properly sized when its file has no more pixels than its displayed size × the screen's pixel ratio. The image delivery check estimates the waste from the share of pixels that are never shown and reports anything over 4 KiB. Offer several widths with srcset, describe the layout honestly in sizes, and stop full-size originals reaching thumbnails. Run Greadme Page Audit to see which images on your page are oversized and how many bytes each one could save.
