How to fix Improve image delivery in PageSpeed Insights (Lighthouse 13)

· Heart Photos

A purple five-petal flower shape on a black background
A purple five-petal flower shape on a black background · Made by AI

To fix "Improve image delivery", make each flagged image no wider than the space it fills times the screen's pixel ratio, serve it as AVIF or WebP, and compress it to about a sixth of a byte per pixel or less. The insight flags an image for one of three things: it is bigger than it is shown, it is heavy for its pixel count, or it is a large animated GIF. The message beside each image tells you which, and the fix follows from it.

We read the insight's source code to find its exact rules, then ran Lighthouse 13.6.0 on five test pages built from one Heart Photos image to watch each rule fire. Both are below.

What is "Improve image delivery"?

It is one of the performance insights in PageSpeed Insights, Lighthouse and the Performance panel in Chrome DevTools. Chrome's page for it (published Oct 8, 2025) says it "highlights images that have unnecessarily large download sizes".

If you remember the old warnings, this is where they went. Lighthouse 13 (Oct 10, 2025) folded four audits into this one insight:

Old Lighthouse audit Now part of
Serve images in next-gen formats (modern-image-formats) Improve image delivery
Efficiently encode images (uses-optimized-images) Improve image delivery
Properly size images (uses-responsive-images) Improve image delivery
Use video formats for animated content (efficient-animated-content) Improve image delivery

The same post removed "Defer offscreen images" outright, because offscreen images are already put last by the browser. Lazy loading still has its place, which we covered in should you lazy load images.

How does it decide an image is too big?

The rules are in the insight's code, ImageDelivery.ts in the DevTools repository (last changed Oct 8, 2026 when we read it on Nov 24, 2026). For every image that was actually painted on the page:

  1. Bytes per pixel. It divides the file's size by the pixels in the file. Above 2/12 of a byte per pixel (about 0.167, the code's TARGET_BYTES_PER_PIXEL_AVIF), it suggests a modern format for a JPEG or PNG, or more compression for a file that is already WebP or AVIF. In round numbers, a 1280 by 720 image passes at about 150 KB or less.
  2. Pixels shown against pixels sent. It compares the largest size the image was painted at, counted in device pixels, with the file's own size. Every pixel beyond that is counted as waste.
  3. Animated GIFs. A GIF over 100 KiB gets "use video formats" instead.

Then it drops any suggestion that would save 4 KiB or less. An image that already has srcset or sits in a <picture> element gets more slack on size: it is flagged only when the waste is over 12 KiB. SVG files are skipped, and CSS background images are never flagged for size.

One thing that surprises people is the phone. PageSpeed's mobile test pretends to be a phone 412 pixels wide with a pixel ratio of 1.75 (Lighthouse's settings), so an image shown 360 pixels wide needs a file 630 pixels wide. The desktop test uses a ratio of 1.

What happened when we tested it?

We built five pages, each showing one image 360 pixels wide, and ran npx [email protected] (mobile, the default) on each on Nov 24, 2026. The image is a Made by AI image from the Heart Photos wall, 1664 by 928, whose original is a 2.37 MB PNG. We made the JPEGs from it with Pillow at quality 85; the AVIFs are the ones Heart Photos serves for it.

What the page served File Bytes per pixel Insight's verdict Est. savings
Original PNG, 1664 wide 2.37 MB 1.53 Modern format and responsive size 2.33 MB
JPEG q85, 1664 wide 245 KB 0.159 Responsive size only 210 KB
AVIF, 1280 wide 49 KB 0.054 Responsive size only 37 KB
JPEG q85, 640 wide 55 KB 0.239 Modern format or more compression 18 KB
AVIF with srcset (320, 640, 1280) 20 KB (the 640 was picked) 0.088 Passed none

What it shows:

  • The full-size JPEG passed the compression check at 0.159 bytes per pixel, just under the bar, yet failed on size. A heavy image and an oversized image are two different problems.
  • A small JPEG can still fail on bytes per pixel. At 640 wide the same quality 85 JPEG went over the bar, because smaller images carry more bytes per pixel.
  • The 1280 AVIF was tiny and still flagged: 49 KB, but sent twice as wide as the phone needed.
  • Only the srcset page passed. The browser asked for 630 pixels, picked the 640 file, and nothing was left to save.

How do you fix each message?

The message says Do this
"This image file is larger than it needs to be (W x H) for its displayed dimensions" Make smaller copies and let the browser choose with srcset and sizes; our guide to what size images should be for a website works through the widths
"Using a modern image format (WebP, AVIF) or increasing the image compression" Encode as AVIF or WebP, or lower the JPEG quality; see what JPEG quality to use and AVIF vs JPEG XL vs WebP
"Increasing the image compression factor" The file is already WebP or AVIF; encode it again at a lower quality
"Using video formats instead of GIFs" Turn the GIF into an MP4 or WebM video that loops, autoplays and is muted

A responsive image that passes looks like this:

<img src="photo-640.avif"
     srcset="photo-320.avif 320w, photo-640.avif 640w, photo-1280.avif 1280w"
     sizes="(max-width: 700px) 100vw, 640px"
     width="1280" height="713" alt="What the image shows">

sizes must match how wide the image really is in your layout, or the browser picks the wrong file. Keep width and height so the page does not jump. Chrome's page also suggests an image CDN, which makes the copies for you.

AVIF is safe to send alone for most audiences: Can I use put its support at 96.69% of browsers on Nov 24, 2026, and WebP at 97.24%.

Frequently asked questions

Does "Improve image delivery" lower my PageSpeed score?

Not directly. Lighthouse 13's announcement says there were "no changes to the performance scoring", which is based on the metrics, not the audits. Fixing images helps the score when it makes Largest Contentful Paint faster, which it often does when the main image was the heavy one.

Why does it flag an image that is already AVIF or WebP?

Either the file is sent wider than it is shown, or it is over about 0.167 bytes per pixel. Detailed images can pass that bar even in AVIF. Of 40 Made by AI images on the Heart Photos wall, the 640 wide AVIFs we serve came to 0.064 bytes per pixel by median, but 6 were over the bar, the busiest scenes. The bar is a rule of thumb, so judge by eye before you squeeze those further.

Why does mobile flag an image that desktop does not?

The mobile test counts 1.75 device pixels for every CSS pixel and the desktop test counts 1, so a file that is big enough on desktop can be far too big on the narrow phone layout, and the reverse.

Why is my image not flagged even though it is huge?

It might not have been painted while Lighthouse watched (an image only preloaded is skipped), it might be an SVG, or it might be a CSS background, which the insight does not check for size. The savings might also be 4 KiB or less.

Where did "Serve images in next-gen formats" go?

Into this insight, in Lighthouse 13 (October 2025). PageSpeed Insights and Chrome's DevTools use it too, so the old wording no longer appears there.

What Heart Photos does

Heart Photos serves every image as AVIF at fixed widths (320, 640, 1280, 1920, 2560 and 3840 pixels, up to the image's own width), each at its own address, so a page can list them in srcset and the browser takes the one it needs. Widths other than 1280 and 1920 are made the first time someone asks for them. This blog does exactly that, and its posts pass this insight: the post on PNG vs JPG scored 99 for mobile performance with no image flagged when we ran Lighthouse on it on Nov 24, 2026. The file you uploaded stays in your library at its own address, so nothing is lost by serving the small copies.

To try it, Open Heart Photos, upload an image, and use its addresses in your page.

More from the blog