Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Images not served in WebP or AVIF: how to find and fix it

PRF-006Medium impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

Every image file has a format. JPEG and PNG are old formats that are still the default in many themes and uploads. WebP and AVIF are newer formats that compress images better, so the same picture needs fewer bytes.

The issue is present when your pages, especially the hero image at the top of a landing page, are delivered with a content-type of image/jpeg or image/png rather than image/webp or image/avif. Modern browsers support both new formats, so there is rarely a good reason to send only the old ones.

Common image formats compared
FormatContent-typeBest forNotes
JPEGimage/jpegPhotosUniversal support, larger files
PNGimage/pngLogos, sharp graphics, transparencyOften huge when used for photos
WebPimage/webpPhotos and graphicsSupported by all current major browsers, good default
AVIFimage/avifPhotosOften smallest files, slower to encode

Why it costs you leads or sales

On many landing pages the largest element is an image. If that file is heavy, the page looks empty for longer, especially on mobile data. Visitors who arrive from paid ads decide quickly, and a slow first impression means some leave before they see your offer or form.

Image format is one cause among several. A well-compressed JPEG at the right size can beat a bloated WebP. Still, switching formats is often an easy win because it needs no design change.

Same hero image, different formatsExample numbers
Same hero image, different formats (example)PNG: 1,800 KB; JPEG: 420 KB; WebP: 290 KB; AVIF: 210 KB06901,3801,800420290210PNGJPEGWebPAVIFKB

Example: illustrative file sizes for one hero photo. Real savings depend on the image and the quality setting.

How a heavy image delays the funnel
  1. Ad clickVisitor lands on the page
  2. Hero image downloadsLarge JPEG/PNG over mobile data
  3. Offer visibleVisitor may leave first
  4. Form submittedFewer reach this step

A large JPEG or PNG slows the hero, so later steps are seen by fewer people.

How to check if your site has it

Check your image formats
  1. Open DevTools

    In Chrome, open your landing page, press F12 and go to the Network tab.

  2. Filter to images

    Click the Img filter, then reload the page with the cache disabled (tick Disable cache).

  3. Read the Type column

    Look for jpeg, png and gif in the Type column. webp or avif is what you want. Sort by Size to see the biggest files first.

  4. Check the hero image

    Click the largest above-the-fold image and read Content-Type under Response Headers.

  5. Run Lighthouse

    In DevTools open Lighthouse, run a mobile report and look for the opportunity named Serve images in next-gen formats (newer reports may fold it into image delivery insights).

How to fix it

There are two routes. Either convert the files yourself before upload, or let your platform or CDN convert them automatically. Automatic conversion is easier to keep up, because new uploads are handled without extra work. The exact menu names depend on your theme and plugins.

Serve WebP or AVIF by platform
  1. Check what WordPress already does

    Recent WordPress versions can create WebP versions of uploads, and you can upload WebP files directly to the Media Library.

  2. Use an image optimisation plugin

    Install a reputable image optimisation plugin that converts to WebP or AVIF and serves them through its settings. Look for options such as WebP conversion or next-gen formats.

  3. Regenerate existing images

    Run the plugin's bulk optimisation so older media is converted too, then clear your page cache and any CDN cache.

Picture element with fallbackshtml
<picture>
  <source srcset="/img/hero.avif" type="image/avif">
  <source srcset="/img/hero.webp" type="image/webp">
  <img src="/img/hero.jpg" alt="Describe the hero image" width="1200" height="630" fetchpriority="high">
</picture>
Convert an image on the command linebash
# WebP (needs the libwebp tools)
cwebp -q 80 hero.jpg -o hero.webp

# AVIF (needs libavif tools)
avifenc --min 20 --max 35 hero.jpg hero.avif
Hero image delivery

Before

  • Hero served as hero.png
  • content-type: image/png
  • Large download on mobile
  • Lighthouse flags next-gen formats

After

  • Hero served as hero.avif or hero.webp
  • content-type: image/avif or image/webp
  • Much smaller download
  • JPEG fallback kept for old browsers

How to confirm it's fixed

Confirmation checklist
  • Reload with cache disabled and the Network tab shows webp or avif for the hero and main images
  • Content-Type on the hero response is image/webp or image/avif
  • The hero file is clearly smaller than before
  • Lighthouse no longer lists the next-gen formats opportunity
  • The images look sharp, with no banding or blur
  • Safari and an older browser still show the image
  • Cached pages and the CDN are purged so you are not testing old files

How to prevent it happening again

Formats slip back when someone uploads a PNG to a new landing page, switches theme, or turns off a plugin. Make the right format the default rather than relying on memory.

Habits that keep images light
  • Turn on automatic conversion in your CMS plugin or CDN
  • Add an image rule to your launch checklist for every new landing page
  • Export hero images at their displayed size, not original size
  • Run Lighthouse on each new paid landing page before launch
  • Re-check after theme changes, plugin updates and CDN changes

How FunnelGuard handles this

FunnelGuard does not check image formats yet. It is a possible future check, since the content type of each image response is visible in the request data a browser records. Today it will not tell you that a hero image is a JPEG or PNG.

What FunnelGuard does do is run your real customer journeys on a schedule, such as lead forms, checkouts and booking buttons. It checks each step, the tracking hits sent to ad and analytics platforms, and whether test leads reach your inbox and CRM. If a heavy page causes a step to fail, you get one alert after a second-region re-check, with a screenshot and a likely cause.

To watch for image format problems, run Lighthouse or PageSpeed Insights on your key landing pages after every release, and spot-check the Network tab for jpeg and png files. You can also use the free read-only FunnelGuard website audit for a wider look at your site. The Free plan covers 1 site and 2 journeys with daily checks, no card needed.

Questions people ask

Why is Lighthouse telling me to serve images in next-gen formats?

Lighthouse found JPEG or PNG images that would be noticeably smaller as WebP or AVIF. Converting them reduces download size, which can help Largest Contentful Paint. Start with the biggest images, especially the hero.

Is WebP or AVIF better for my website?

AVIF often gives the smallest files but takes longer to encode, while WebP is quicker to make and very widely supported. Both beat JPEG and PNG for most photos. A good approach is to offer AVIF, then WebP, then a JPEG fallback.

How do I check if my images are WebP?

Open DevTools, go to the Network tab, filter by Img and reload. The Type column shows webp, avif, jpeg or png for each file. You can also click an image and read the Content-Type response header.

Do all browsers support WebP and AVIF?

All current major browsers support WebP, and AVIF support is also broad in current versions. Very old browsers may not support them. Use the picture element with a JPEG fallback, or a CDN that picks the format by browser, so nobody sees a broken image.

Will converting images to WebP fix my slow LCP on its own?

Not always. Format is one factor, alongside image dimensions, lazy loading, preloading and render-blocking files. Check which of these affects your hero image and fix them together.

How do I convert images to WebP in WordPress?

Use an image optimisation plugin that converts uploads to WebP or AVIF, then run its bulk optimise tool on existing media. Clear your page and CDN caches afterwards and recheck in the Network tab. The exact settings depend on the plugin.

Does Shopify serve WebP automatically?

Shopify's image CDN can deliver modern formats to browsers that support them for images uploaded to Shopify. Use the image_url filter in your theme so the CDN can choose format and size. Images linked from outside hosts are not converted.

Does FunnelGuard check image formats?

No, not yet. It is a possible future check. For now, use Lighthouse, PageSpeed Insights or the browser Network tab to watch image formats.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.