In short
Ahrefs flags "Image file size too large" for images bigger than its size threshold (check the issue's info panel for the current value). Large images slow loading, especially on mobile, and often cause poor LCP. Resize images to the size they're displayed at, compress them, and serve modern formats like WebP or AVIF.
Images are usually the heaviest part of a page. One unoptimized photo straight from a phone can weigh more than the rest of the page combined.
Practical targets
| Image | Suggested width | Rough size goal |
|---|---|---|
| Full-width hero | 1600 to 2000px | Under 200 KB |
| Content image | 800 to 1200px | Under 100 KB |
| Thumbnail | 300 to 600px | Under 50 KB |
These are rules of thumb, not limits set by Google or Ahrefs.
How to fix it
Resize. Don't upload a 4000px photo to show it at 800px.
Compress. Quality 75 to 85 is usually indistinguishable for photos.
Use WebP or AVIF, which are much smaller than JPEG and PNG at similar quality.
Serve responsive sizes with
srcset, so phones download smaller versions.Lazy-load images below the fold with
loading="lazy", but never the hero image.
<img src="/uploads/team-800.webp"
srcset="/uploads/team-400.webp 400w, /uploads/team-800.webp 800w"
sizes="(max-width: 600px) 100vw, 800px"
width="800" height="533" loading="lazy" alt="Our team at work">
WordPress: WordPress creates resized copies and srcset automatically, and supports WebP and AVIF uploads. An image optimization plugin can compress and convert existing images in bulk.
Shopify: Shopify's CDN serves resized and WebP versions when themes use its image filters. Upload sensible sizes anyway.
Webflow: Webflow generates responsive variants, and can convert assets to WebP or AVIF in the Assets panel.
Wix: Wix optimizes and converts images automatically. Avoid uploading very large originals.
Custom builds: generate sizes at upload time (for example with the sharp library in Node.js) and store each variant.
This guide isn't affiliated with or endorsed by Ahrefs.
Related issues
Sources and references
web.dev, Serve responsive images
web.dev, Use WebP images
Google Search Central, Google image SEO best practices

About the author
Nazmul Nikhil
Head of SEO & Assistant Manager, Digital Marketing at Notionhive
SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.



