Image SEO checker and optimizer

Find images without alt text, oversized files, broken images and missing dimensions, then compress them and convert to WebP or AVIF in a separate directory.

What it does

Find the weak images

A crawl records each image's file size, alt attribute and whether it loads. Imported crawl exports are read the same way, offline. The findings tell you which images are missing alt text, which are over the size limit and which have no width and height, so the layout jumps while the page loads.

  • Missing alt text and missing alt attribute
  • Files over the size limit, 150 KB by default
  • Broken images (4xx or 5xx)
  • Missing width and height, and overlong alt text

Image pipeline

images-optimize recompresses, resizes or converts local images to WebP or AVIF. It can also take images declared in a saved scan, up to 50 distinct images per run. Width and height limits never enlarge an image, and quality can be set from 10 to 100 or chosen automatically.

  • Formats: keep, jpeg, png, webp, avif
  • Quality 10 to 100 or auto
  • Optional EXIF removal
  • Scan mode writes only to the output directory you name

Safe by default

Optimization writes to a separate directory. Changing the original files needs the explicit in-place flag, and backups are made by default. Replacing an existing file needs the overwrite flag.

  • Output directory required unless in-place is asked for
  • Backups kept for in-place edits
  • Renamed files need 301s from old and new URL pairs via redirects-generate
  • The audit can also write a prioritized task list for developers

Three steps, one saved scan

  1. Find the weak images

    A native crawl records each image's file size, its alt attribute and whether it loads. Imported exports are read the same way, offline.

  2. Compress and convert

    images-optimize writes WebP or AVIF to a separate directory, never upscales, and makes a backup before any in-place edit.

  3. Hand over the fixes

    sf run --tasks writes a task list for the developer with reproduction steps. Renamed files need 301s from old and new URL pairs via redirects-generate.

Checks in this feature

CheckWhat it meansSeverityEvidence
IMG_MISSING_ALTImage has no alt textImportantImage URL and the pages that use it
IMG_MISSING_ALT_ATTRIBUTEThe img tag has no alt attribute at all, not even alt="". Native crawl.ImportantPage URL with the count of img tags missing the attribute
IMG_OVER_KBImage file is larger than the size threshold, 150 KB by default. Measured in the native crawl with resource capture.ImportantImage URL, byte size and the limit
IMG_BROKENImage URL answers with a 4xx or 5xx error, so the browser shows nothing. Native crawl.ImportantImage URL, HTTP status and the source page
IMG_MISSING_DIMENSIONSThe img tag does not declare width and height, so layout space is not reservedTipImage URL and the source page
IMG_ALT_TOO_LONGAlt text is longer than the configured limit, 100 characters by default. Native crawl.TipImage URL, alt length and the alt text

One command

bash
spiderhead images-optimize --files ./images --output-dir ./optimized --format webp

Install first: installation guide. Every command also runs as an MCP tool for AI agents.

What you need

  • A crawl-site scan, or imported crawl exports, for the findings
  • A folder of image files, or a saved scan, for images-optimize
  • A directory to write results to

Limits

  • Alt text is reported, not written: only you know what the image shows
  • Scan mode optimizes at most 50 distinct images per run
  • Optimized files are not uploaded or swapped on your site
  • Image dimensions on screen are only compared with file size when the page was rendered

Questions

Does it change anything on my site?
No. The checks read pages and images. images-optimize writes to the directory you give it. In-place edits need --in-place and keep backups by default.
Do I need another crawler for the image data?
No. A SpiderHead crawl records each image's file size, alt attribute and whether it loads. Saved exports can be analyzed offline with sf run, and images-optimize reads files straight from disk.
Does it write the alt text for me?
No. It reports missing or overlong alt text. You write the description, because only you know what the image shows.
Which formats can I convert to?
keep, jpeg, png, webp or avif. Quality runs from 10 to 100, or auto. Width and height limits never enlarge an image.
Where does the image data come from?
From a crawl, an imported export, or, for images-optimize, from files on disk or from a saved scan. Checks that need data the source does not hold are skipped with a reason.
What are the default thresholds?
An image over 150 KB is flagged, and alt text over 100 characters is flagged as too long. Both limits are configurable.

Try it on your own site