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.
| Format | Content-type | Best for | Notes |
|---|---|---|---|
| JPEG | image/jpeg | Photos | Universal support, larger files |
| PNG | image/png | Logos, sharp graphics, transparency | Often huge when used for photos |
| WebP | image/webp | Photos and graphics | Supported by all current major browsers, good default |
| AVIF | image/avif | Photos | Often 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.
Example: illustrative file sizes for one hero photo. Real savings depend on the image and the quality setting.
- Ad clickVisitor lands on the page
- Hero image downloadsLarge JPEG/PNG over mobile data
- Offer visibleVisitor may leave first
- 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
Open DevTools
In Chrome, open your landing page, press F12 and go to the Network tab.
Filter to images
Click the Img filter, then reload the page with the cache disabled (tick Disable cache).
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.
Check the hero image
Click the largest above-the-fold image and read Content-Type under Response Headers.
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.
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.
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.
Regenerate existing images
Run the plugin's bulk optimisation so older media is converted too, then clear your page cache and any CDN cache.
Use Shopify's image CDN
Images uploaded to Shopify are served from its CDN, which can deliver modern formats to supporting browsers automatically.
Use the image_url filter in your theme
In Liquid, output images with image_url and image_tag rather than hard-coded file links, so the CDN can choose the format and size.
Replace hard-coded images
Images pasted from external hosts or added as raw URLs in custom sections bypass this. Re-upload them in Files or the theme editor.
Not a fix for this issue
GTM does not control image formats. Fix the files in your site, CMS or CDN instead.
Upload images normally
Webflow converts uploaded JPEG and PNG images to WebP or similar on its own in many cases. Check the Network tab to confirm.
Check the Assets panel settings
Look for the image compression and format options in Webflow's asset and site settings, and re-upload old images if they are not converted.
Replace background images in custom code
Images linked by URL in embeds or custom CSS are not converted. Upload them as native assets.
Upload WebP files
Convert your hero and section images to WebP before uploading to the media library, then re-select them in the page builder.
Keep file sizes small
Export at the size shown on the page, not the full camera size.
Upload through the Wix editor
Wix generally serves optimised image formats for images added through its media manager. Confirm in the Network tab.
Avoid external image URLs
Images embedded from outside Wix media are not optimised. Upload them to the media manager instead.
Upload standard image files
Squarespace processes uploaded images and can serve modern formats to supporting browsers. Confirm in the Network tab.
Replace code-injected images
Images added through code blocks or custom CSS are not processed. Add them with image blocks.
Convert the files
Use a tool such as cwebp or avifenc, or an image library in your build pipeline, to create .webp and .avif versions.
Serve with a picture element
Offer AVIF, then WebP, then a JPEG fallback so every browser gets a format it understands. See the snippet below.
Or negotiate at the CDN
Many CDNs can convert on the fly based on the browser's Accept header. Turn on the image format or image optimisation option in your CDN settings.
<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># 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.avifBefore
- 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
- 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.
- 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.
Related issues
- PRF-001LCP over 2.5 s on a funnel stepFix guide
- PRF-002LCP over 4 s on mobile (poor) on the paid landing pageFix guide
- PRF-003Hero image is a 4 MB PNGFix guide
- PRF-004Hero image served at 3000 px wide to a 400 px phone screenFix guide
- PRF-005No srcset/sizes on responsive imagesFix guide
- PRF-024Images missing width/height causing late layout and slow LCPFix guide