PageSpeed fix guide ·

Improve image delivery (Serve images in next-gen formats): how to fix it

Improve image delivery means some pictures on your page are heavier than they need to be: an old format, weak compression, or a file much larger than the size it is shown at. The fix: serve each picture as WebP or AVIF, at the width it is actually displayed, and let pictures below the first screen load as visitors scroll.

In PageSpeed Insights
Improve image delivery
Older name
Serve images in next-gen formats · Properly size images · Efficiently encode images · Defer offscreen images
In a FlashMax report
Pictures are heavier than they need to be

78.8% of the 40,951 WooCommerce stores FlashMax tested have this problem. See the study

The short fix

  1. Test the page and note the images with the largest estimated savings.
  2. Resize each of them to the largest width your theme shows it at, then save it as WebP or AVIF.
  3. Turn on WebP or AVIF for new uploads and regenerate the sizes of existing images.
  4. Check that images use srcset, that the first image is not lazy-loaded and that images further down are.
  5. Re-test two or three times and compare the estimated savings.

What PageSpeed Insights is telling you

Since Lighthouse 13 (October 2025), PageSpeed Insights shows Improve image delivery in the Insights part of the performance report. It replaced four older audits that people still search for:

  • Serve images in next-gen formats: JPEG, PNG or GIF where WebP or AVIF would be much smaller;
  • Efficiently encode images: files saved with little or no compression;
  • Properly size images: a file larger than the size it is displayed at;
  • Use video formats for animated content: heavy animated GIFs.

A fifth old warning, Defer offscreen images, was removed in Lighthouse 13 rather than merged: browsers already give offscreen images low priority, so lazy loading saves data but rarely changes what Lighthouse measures. It is still worth doing for your visitors.

Each listed image comes with an estimated saving and a reason. Images that would save less than 4 KiB are not listed. In a FlashMax report the same problem is the card Pictures are heavier than they need to be, and it clears when less than 100 KB is left to save.

Why heavy images slow the page

Heavy images mostly hurt Largest Contentful Paint (LCP): the moment the biggest element of the first screen appears. On a store home page that element is usually a picture, such as a hero banner, a slider or a product photo. LCP carries 25% of the Lighthouse performance score; Google rates it good at 2.5 s or less and poor above 4 s.

Images further down the page don’t delay LCP directly, but they compete with it for the connection. The Lighthouse phone test simulates a mid-range phone on a slow 4G connection, where every extra megabyte costs seconds. Speed Index (10% of the score) suffers too, because the page fills in more slowly.

The insight itself does not change the score; only the five metrics do.

How common it is

In our study of 40,951 WooCommerce stores (home pages, tested between 30 October and 26 November 2026), 78.8% of stores (32,262) got this card. Their median phone score was 52, against 56 for stores without it. That gap is a correlation, not proof: stores with heavy images usually have other problems too.

Images are the largest part of a typical page. The median store downloaded 1,385,640 bytes (about 1.4 MB) of images in the phone test, and across all sites we tested, images made up 49.8% of page bytes at the median.

How to find the heavy images

  • FlashMax: the free speed test (about a minute) lists the image files behind the card.
  • PageSpeed Insights: open Improve image delivery under Insights. Each row shows the image, the estimated saving and the reason: a modern format or stronger compression would help, or the file is larger than its displayed dimensions (both sizes are shown).
  • Chrome DevTools: in the Network panel, filter by Img and sort by size. In the Elements panel, hover over an <img> to compare its rendered size with its intrinsic (file) size.

Fix the biggest savings first. One oversized banner can outweigh dozens of thumbnails. Test a product page and a category page too: they have their own images.

How to fix it on WordPress and WooCommerce

Know what WordPress already does

  • It accepts WebP uploads (since 5.8) and AVIF uploads (since 6.5) if the server’s image library, Imagick or GD, supports them. Check under Tools → Site Health → Info → Media Handling.
  • For images from the media library it creates several sizes and adds srcset and sizes, so phones can get a smaller file.
  • It adds loading="lazy" to images. Since 6.3 it leaves the first three images without it and gives the image most likely to be the LCP element fetchpriority="high".
  • Since 6.7 it adds sizes="auto" to lazy-loaded images, so browsers that support it pick the file from the width the image really takes on screen.

What core does not do is convert your JPEG and PNG uploads to WebP or AVIF. Even WordPress 7.1, which can resize uploads in the browser (in the block editor, in Chrome and Edge), still saves JPEG and PNG uploads as JPEG and PNG unless a plugin or filter asks for another format.

Convert new uploads to WebP or AVIF

The simplest free option is Modern Image Formats, made by the WordPress Performance Team. New uploads then get their resized versions as AVIF if your server supports it, otherwise as WebP; when both work, you choose in Settings → Media. The original upload stays JPEG or PNG. Older images are converted only when you regenerate their sizes, for example with the Regenerate Thumbnails plugin or wp media regenerate.

Developers can get the same without a plugin through the image_editor_output_format filter, for example in a small custom plugin:

add_filter( 'image_editor_output_format', function ( $formats ) {
    // New JPEG uploads get their resized versions as WebP.
    $formats['image/jpeg'] = 'image/webp';
    return $formats;
} );

Image optimization plugins can also convert and compress the whole library in bulk; use one of them, not two.

Stop uploading huge originals

Resize photos before upload to about the largest size your theme ever shows them. Banners and sliders set in theme or builder options often skip the media library sizes, so the file you upload is the file visitors get. For such one-off pictures, the free FlashMax tools work in the browser: resize an image, compress JPG, PNG, WebP or AVIF, convert JPG to WebP or PNG to WebP, or compress an image to under 100 KB.

Match WooCommerce image sizes to your theme

In a classic theme, open Appearance → Customize → WooCommerce → Product Images and set Main image width to the largest width your product page shows. WooCommerce advises matching or exceeding it so photos stay sharp; a file far wider than that only adds weight. Check the thumbnail settings used by the shop grid too. In a block theme, adjust image dimensions in the product templates under Appearance → Editor. After you change sizes, regenerate the images: WooCommerce → Status → Tools → Regenerate shop thumbnails.

In page builders and slider plugins, choose an image size close to the displayed width wherever the widget offers one, instead of Full. A category tile shown 400 px wide doesn’t need a 2,400 px file.

Keep lazy loading, but not on the first screen

Let images below the first screen lazy-load; WordPress and most speed plugins do this by default. Make sure the hero image is not lazy-loaded: the LCP request discovery guide shows how.

Replace animated GIFs with video

A looping GIF banner is often several megabytes. Export it as WebM and MP4, upload both and embed them as a silent looping video:

<video autoplay muted loop playsinline width="800" height="450">
  <source src="/media/promo.webm" type="video/webm">
  <source src="/media/promo.mp4" type="video/mp4">
</video>

Shopify and hand-built sites

Shopify serves images from its own CDN and picks the file format for each browser itself, WebP or AVIF where supported. So on Shopify the usual problem is size, not format: upload images close to the size they are shown, and in custom theme code request a width and let image_tag build the srcset:

{{ section.settings.image
   | image_url: width: 1600
   | image_tag: widths: '400, 800, 1200, 1600', sizes: '100vw' }}

Hand-built sites: offer modern formats with a fallback and let the browser pick the size:

<picture>
  <source type="image/avif"
          srcset="/img/sofa-800.avif 800w, /img/sofa-1600.avif 1600w"
          sizes="(max-width: 768px) 100vw, 50vw">
  <source type="image/webp"
          srcset="/img/sofa-800.webp 800w, /img/sofa-1600.webp 1600w"
          sizes="(max-width: 768px) 100vw, 50vw">
  <img src="/img/sofa-800.jpg"
       srcset="/img/sofa-800.jpg 800w, /img/sofa-1600.jpg 1600w"
       sizes="(max-width: 768px) 100vw, 50vw"
       width="1600" height="1200" alt="Grey three-seat sofa" loading="lazy">
</picture>

Remove loading="lazy" from images in the first screen. The sizes value tells the browser how wide the image is displayed; if it is wrong, the browser downloads the wrong file. An image CDN can do the conversion and resizing for you on the fly.

Mistakes to avoid

  • Lazy-loading the first image. It delays the largest picture and makes LCP worse, even when the page gets lighter.
  • Compressing until products look bad. Check zoomed product photos on a real phone after a bulk conversion.
  • Deleting originals. Some optimizers offer to delete the original files, and that can’t be undone. Keep a backup before any bulk job.
  • Running two image optimizers at once. They fight over the same files and URLs.
  • Serving AVIF without a fallback on a hand-built page. Keep a WebP or JPEG fallback in <picture>.
  • Faking the result. Tricks that serve tiny placeholder images only to Lighthouse raise the score but do nothing for shoppers.

How to check the fix worked

Re-test the same page in PageSpeed Insights or with the free speed test. Lab results vary from run to run, so run it two or three times and compare typical results, not one lucky run.

The estimated savings under Improve image delivery should drop. Then look at LCP: if it barely moved, the main image is probably discovered late, and the LCP request discovery guide is the next step.

Field data (the Core Web Vitals report in Search Console and the Chrome UX Report) covers the last 28 days of real visits, so give it about four weeks to fully reflect the change.

Questions people ask

Is WebP or AVIF better for an online store?

Both clear the warning. AVIF usually gives smaller files at the same quality, WebP is the safe choice where your server or plugin can’t make AVIF. If your setup supports AVIF, use it; otherwise WebP is fine.

Why does PageSpeed Insights still flag images I already converted to WebP?

The WebP file may still be larger than the size it is shown at, or saved with little compression. Also check the page really serves the WebP file (open it in the Network panel) and clear your page cache and CDN cache after converting.

WordPress makes srcset. Do I still need to resize images?

Yes, for images that skip the media library sizes: banners set in theme options, slider and builder images inserted at full size, and CSS background images. srcset can only choose among sizes that exist.

Sources

  1. Lighthouse is moving to performance insight audits (Chrome for Developers)
  2. Improve image delivery (Chrome for Developers)
  3. Image performance enhancements in WordPress 6.3 (Make WordPress Core)
  4. WordPress 6.5 adds AVIF support (Make WordPress Core)
  5. Auto sizes for lazy-loaded images in WordPress 6.7 (Make WordPress Core)
  6. Client-side media processing in WordPress 7.1 (Make WordPress Core)
  7. Modern Image Formats plugin (WordPress.org)
  8. Fixing blurry product images (WooCommerce documentation)

Rather have it done?

The FlashMax team fixes the issues in your report, on a copy first, and shows the before-and-after.

See the speed optimization service

              AMERICANEXPRESSPayPalDISCOVERstripeVISA