Core Web Vitals for Images: LCP & CLS Fixes That Work
Images cause most Core Web Vitals failures: oversized heroes wreck Largest Contentful Paint, and dimensionless photos wreck Cumulative Layout Shift. Both drag rankings and conversions — and both are fixable with preload hints, real compression and explicit dimensions. This guide gives you the exact image fixes that turn red scores green.
Fix LCP: the hero is usually guilty
Largest Contentful Paint measures when the biggest visible element finishes loading — on product and landing pages, that is almost always the hero image. An unoptimized 3 MB hero guarantees a red score on mobile; the same shot compressed to 300 KB in WEBP with a preload hint routinely passes.
The fix stack: compress the hero aggressively (it is one image — afford it care), serve WEBP with JPG fallback, preload it with fetchpriority high, and never lazy-load above-the-fold imagery. Measure in PageSpeed Insights before and after — the delta is usually seconds, not milliseconds.
Fix CLS: dimensions kill layout shift
- Set explicit width and height on every img — the browser reserves space before loading, so nothing jumps.
- Use aspect-ratio in CSS for responsive images so the reserved box scales correctly at every viewport.
- Never inject images above existing content after load — carousels and banners need reserved slots from first paint.
- Preload web fonts or use font-display swap so text blocks do not reflow around late images.
The compression settings that pass
For Web Vitals purposes, aim higher than pretty: heroes under 300 KB, gallery images 200–500 KB each, thumbnails under 100 KB. WEBP at quality 75–80 or JPG at 80–85 after resizing to display size hits these bands for typical product photography without visible loss.
Responsive images multiply the win: serve 800 px files to phones and 2400 px to desktops via srcset instead of forcing one giant file on everyone. Mobile is where Vitals fail and where most shoppers live.
Compress the whole catalog at once
Speed Boost resizes and recompresses up to 50 images per batch to progressive JPG or WEBP in the exact bands above — the mechanical half of the Vitals fix in one click. Pair it with dimension attributes and preload on your templates for the full pass.
Recheck quarterly. Catalogs drift as new uploads skip the pipeline — one uncompressed batch can undo a green score.
The measurement loop
Fix one thing per deployment, then wait. Field data is a 28-day rolling window, so a fix applied today will not move the number tomorrow; judging it after 48 hours is how teams chase ghosts.
If LCP is green in the lab and red in the field, the difference is usually device and network: a phone on 4G loading a desktop-sized hero. Test with throttling before concluding the server is slow.
| Metric | Good | Where to check | Common image cause |
|---|---|---|---|
| LCP | ≤ 2.5 s | PageSpeed Insights → field data | Hero too large, lazy-loaded, or missing fetch priority |
| CLS | ≤ 0.1 | PageSpeed Insights → field data | Missing width/height or aspect-ratio box |
| INP | ≤ 200 ms | PageSpeed Insights → field data | Image sliders and heavy carousel scripts |
| Page weight | Budget per template | DevTools network panel | Uncompressed originals and duplicate sizes |
Frequently asked questions
How do images affect Core Web Vitals?
Oversized heroes delay Largest Contentful Paint and dimensionless images cause Cumulative Layout Shift. Compress to 200–500 KB, set explicit dimensions, and preload the hero.
What is a good LCP image size?
Heroes under 300 KB in WEBP or JPG, preloaded with high fetch priority. Resize to display size first — most failures come from serving desktop-sized files to phones.
How do I fix CLS caused by images?
Add width and height to every img tag plus aspect-ratio CSS so browsers reserve space before loading. Never inject images above existing content after load.
Does lazy loading help Core Web Vitals?
Below the fold, yes. Never lazy-load the hero or above-the-fold images — lazy LCP elements load later by design and fail the metric.
About BulkImageSEO
BulkImageSEO is a free image SEO toolkit maintained by Salah Berrehou. It renames files with keyword-rich names, injects Title, Subject, Tags and Comments metadata, compresses images for Core Web Vitals and converts formats. Uploaded files are deleted after 60 minutes and no account is required. Read more about the author, the step-by-step guide, or contact us.