Skip to content
Nazmul Nikhil
Menu

Image File Size Too Large (Ahrefs): Compress, Resize and Modernize

Ahrefs flags images over its file size threshold. Large images slow pages and hurt LCP. Here's how to resize, compress and serve WebP or AVIF.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 2 min read
Image File Size Too Large (Ahrefs): Compress, Resize and Modernize
Photo: Conor Luddy on Unsplash

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

  1. Resize. Don't upload a 4000px photo to show it at 800px.

  2. Compress. Quality 75 to 85 is usually indistinguishable for photos.

  3. Use WebP or AVIF, which are much smaller than JPEG and PNG at similar quality.

  4. Serve responsive sizes with srcset, so phones download smaller versions.

  5. 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.

Sources and references

TAGSAhrefs Site AuditImage file size too largeCompress imagesReduce image size
Nazmul Nikhil

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.

Need help with this?

Get it fixed with Core Web Vitals

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Site Audit Issues posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com