Skip to main content
sus.botdocs
  • SEO
  • AI
  • QA
  • Privacy
  • Accessibility
  • Security
  1. Docs
  2. SEO
  3. Images
  4. An image is broken, heavier than needed or missing attributes

SEO finding

An image is broken, heavier than needed or missing attributes

SEO Warning Severity: Medium

Part of the audit Images. Finding id: seo.imageProblems.

What it costs you

Broken images leave holes in the page. Heavy images slow it down. Images without alt text are invisible to image search and to screen reader users.

What to do

Fix the image once at its source; every page that uses it is fixed with it.

What it checks

  • Images without description text
  • Images without set size
  • Image files too large
  • Images not adapted to screen size
  • Images shown squashed or stretched
  • Outdated image format
  • Image does not load
  • Image address redirects elsewhere

How to fix it

Repair the image address

  1. Open [src]. If it answers with an error, put the file back or remove the img element from [example page] and the other pages.
  2. If it redirects, write the address it ends at into the src.

How to check: curl -sI [src] shows status 200. Recrawl the pages that use the image.

Add an alt attribute

  1. Open [example page] and look at what the image shows and why it is there.
  2. Write that in a few words in the alt attribute. Do not start with "image of".
  3. Decoration: set alt="" so screen readers skip it.

How to check: Recrawl the pages that use the image and run this rule again.

Set width and height

  1. Use the real pixel size of the file. CSS can still scale the image.

How to check: Recrawl the pages that use the image and run this rule again.

Serve a smaller file

  1. Export the image no wider than about twice the widest size it is shown at, in WebP or AVIF.
  2. Export one or two smaller widths and list them in srcset.

How to check: Recrawl the pages that use the image and run this rule again.

Thresholds

Thresholds for An image is broken, heavier than needed or missing attributes
NameDefaultMeaning
max_scale2.0An image is oversized when its real width is more than this many times the widest size it is shown at. 2 leaves room for high-density screens.
oversized_min_bytes50000Oversized images below this file size are not reported; the saving is too small.
responsive_min_width800Images at least this wide in pixels are expected to offer smaller versions through srcset.
aspect_tolerance0.05How far the shape of the box may differ from the shape of the image file, as a share of the file's width to height ratio.
legacy_min_bytes100000JPEG, PNG, GIF, BMP and TIFF files below this size are not reported as legacy format.
  • All audits
  • About sus.bot
  • Open the app
  • Contact support