PageSpeed

How to Fix “Serve Images in Next-Gen Formats”

A practical 3-step workflow for Shopify, WordPress, Webflow, and Framer.

Published: Updated: Reading time: 7 min read

Direct answer: To fix PageSpeed Insights’ “Serve images in next-gen formats”, convert legacy JPG/PNG assets to WebP or AVIF before uploading, replace heavy hero/media files, and re-test Core Web Vitals. Aim for LCP < 2.5s and keep critical hero images under 100–200 KB when visual quality allows.

3-step fix workflow

  1. Audit heavy assets: In PageSpeed Insights, identify images flagged under “Serve images in next-gen formats” and “Properly size images”. Prioritize hero, LCP, and above-the-fold media.
  2. Convert before upload: Use Go WebP presets to convert JPG/PNG to WebP or AVIF locally. For Shopify, start with Shopify Image Optimizer; for WordPress, WordPress WebP Without Plugin; for Webflow/Framer, Webflow & Framer Optimizer; for strict budgets, Compress Under 100 KB.
  3. Replace and validate: Upload optimized assets, clear CDN/cache, and rerun PageSpeed Insights. Confirm next-gen formats are served and LCP improves.
Platform workflow and target budgets
Platform Best Go WebP preset Hero/LCP budget Key action Expected outcome
Shopify Shopify Image Optimizer 100–200 KB hero where possible Convert product/hero JPG or PNG to WebP Q82 Reduced image payload on PDP/collection
WordPress WordPress WebP Without Plugin 100–200 KB hero where possible Convert before Media Library upload Avoid plugin overhead and heavy legacy images
Webflow Webflow & Framer Optimizer 100–200 KB hero where possible Export 2x assets then convert to WebP/AVIF Faster hero rendering on marketing pages
Framer Webflow & Framer Optimizer 100–200 KB hero where possible Replace PNG/JPG exports with WebP/AVIF Lower LCP risk on visual landing pages
Before/after optimization example targets
Asset Before After Target format LCP impact
Homepage hero 650 KB JPG 160 KB WebP WebP Q80-Q82 Improves above-the-fold load
Product image 420 KB PNG 95 KB WebP WebP Q82 Smaller PDP payload
Campaign banner 900 KB JPG 180 KB WebP/AVIF WebP or AVIF Lower transfer on mobile
Blog image 320 KB JPG 110 KB WebP WebP Q80 Faster article rendering

CMS-specific notes

Shopify and modern CMS platforms can serve modern formats, but pre-optimizing gives you control over quality, dimensions, and privacy. For WordPress, converting before upload avoids PHP image-processing overhead from heavy plugins. For Webflow and Framer, optimize design exports before publishing to keep LCP under 2.5s.
Questions & Answers

Frequently Asked Questions

What does 'Serve images in next-gen formats' mean?

PageSpeed Insights flags images that could be delivered in newer formats like WebP or AVIF with smaller file sizes. Replacing legacy JPG/PNG files with optimized next-gen formats can reduce transfer size and improve LCP.

Should I use WebP or AVIF to fix the PageSpeed warning?

Use WebP for broad compatibility and predictable workflows. Use AVIF when browser support and visual quality meet your needs. Go WebP can default to AVIF and honestly fall back to WebP when encoding is unsupported.

What is a good hero image size for LCP?

A practical target is under 100–200 KB for critical hero images when quality allows. The exact budget depends on design, dimensions, and device mix, but smaller hero payloads usually improve Largest Contentful Paint.

Can I fix this without WordPress plugins?

Yes. Convert images to WebP before uploading to the WordPress Media Library. This avoids PHP timeouts, server CPU spikes, and recurring plugin fees while still delivering next-gen image formats.

How do I verify the fix worked?

After replacing assets, clear caches and rerun PageSpeed Insights. Check that flagged images are gone or reduced, confirm next-gen formats are delivered, and measure LCP, especially on mobile templates.

Advertisement