Image SEO: Performance, Discovery And The Crawl Surface You Did Not Know Existed
Image optimisation gets discussed as a performance problem, and it is one, but on a large site it is also an indexation problem and sometimes a discovery problem, because every responsive image markup device generates additional URLs and every transformation service multiplies them again. This post covers the file layer, the markup layer, the crawl layer and the measurement layer, in that order, because that is the order in which the problems surface.
Four problems wearing one name
| Problem | Symptom | Owner |
|---|---|---|
| Performance | LCP fails, poor CLS, slow pages | Front-end or platform |
| Accessibility | Missing or meaningless alt text | Content team |
| Discovery | No traffic from image search | Content and merchandising |
| Crawl surface | Crawler spends requests on image URLs | Platform or platform engineering |
The fourth is the one that surprises people. It appears the first time a crawl report shows a pattern like /media/thumb/ with six hundred thousand URLs, and it is almost always invisible to the teams who own the other three.
The file layer
| Choice | Recommendation | Why |
|---|---|---|
| Format | AVIF with WebP fallback | Meaningful byte reduction at equal quality |
| Dimensions | Serve at display size, never upload size | Largest single cause of LCP failure |
| Responsive variants | 2 or 3 widths, not 6 | Each width is another URL |
| Quality | 70 to 80 for most photography | Below 65, artefacts; above 85, wasted bytes |
| Format negotiation | Content negotiation rather than URL parameters | Keeps the URL surface small |
That last row is the important one for a large site. Image transformation URLs that encode parameters in the path are discoverable, infinite, and impossible to enumerate:
# Avoid: an unbounded, non-deduplicating URL space
/media/product/12345/1200x1200x80-q90.jpg
/media/product/12345/800x800x75-q85.jpg
# Prefer: one canonical URL, negotiated by content type
/media/product/12345.jpg
The second form has one URL per asset. If the CDN cannot do content negotiation, then the constrained version is to allow exactly one transformation and canonicalise the rest, rather than allowing four:
location ~* ^/media/(.*)/(\d+)x(\d+)x(\d+)-q(\d+)\.(jpg|png|webp)$ {
# Serve the canonical asset; keep the variant URL alive but redundant.
return 301 /media/$1.$6;
}
The trade-off here is real and worth stating: every request for a variant now costs a redirect, and if your templates or your CDN still emit variant URLs in srcset, you have traded a crawl problem for a latency one. The correct order is to change the markup first, then add this rule as a safety net.
The markup layer
<img
src="/media/product/12345.jpg"
srcset="/media/product/12345.jpg 400w,
/media/product/12345@2x.jpg 800w"
sizes="(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 400px"
width="400"
height="400"
alt="Cordless drill press, 710 watt, with dust port"
loading="lazy"
decoding="async"
fetchpriority="high">
Every attribute in that snippet earns its place:
| Attribute | Consequence of omitting it |
|---|---|
width and height | Layout shift when the image loads; CLS failure |
sizes | The browser cannot choose correctly from srcset |
alt | No image search eligibility, no screen reader access |
loading="lazy" | Every below-the-fold image competes for bandwidth |
fetchpriority="high" | The LCP element may lose its slot to a script |
The alt attribute is the one with the most content guidance and the least discipline. Alt text should describe the image for someone who cannot see it and cannot load it, and should not be a keyword list. "Cordless drill press, 710 watt, with dust port" is useful. "drill press power tool cordless 710w best cheap sale" is not, and it is what most CMS alt-text fields contain because someone was told keywords mattered.
The one exception is decorative imagery, where the correct value is an empty alt attribute and nothing else. Both alt="" and a missing alt are accessibility failures, in opposite directions.
For a genuinely useful pattern at scale, the sizes attribute needs to be derived from the layout rather than guessed. Hard-coding it per template is acceptable; letting a component library guess is not, because a wrong sizes value silently downloads the wrong image at every viewport.
Lazy loading and the LCP element
Lazily loading the largest contentful element is self-defeating, and it is a common regression from a well-intentioned component refactor. The rule is narrow and unambiguous:
The image that will be Largest Contentful Paint must not be lazy-loaded.
In practice that means the hero image on a product page, the first image in an article, and the logo in a header that sits above the fold. Everything else should be lazy. This is worth an explicit lint rule, because the failure is invisible on a fast laptop and obvious on a throttled phone.
Images and discovery
Image search traffic is real but narrow, and it is concentrated in a small number of contexts: products, recipes, reference material and how-to illustration. On a large product catalogue it is worth optimising for precisely because the population is concentrated, which is unusual.
The requirements for image search eligibility are narrow and largely separate from technical SEO:
| Requirement | Notes |
|---|---|
| Crawlable image URL | Not blocked by robots.txt |
| Indexable containing page | The page matters, not just the file |
| Descriptive alt text | Confirmed as a ranking input for image search |
| Image sitemap or good internal linking | Helps discovery |
| Valid structured data on the page | Product image, Article image |
The image sitemap is where large sites usually have a data-quality problem rather than a technical one, because the lastmod values are frequently upload dates rather than modification dates and are therefore wrong in a way no validator will flag.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
<url>
<loc>https://example.com/product/12345</loc>
<lastmod>2026-10-14</lastmod>
<image:image>
<image:loc>https://example.com/media/product/12345.jpg</image:loc>
<image:caption>Cordless drill press, 710 watt, with dust port</image:caption>
<image:title>Cordless drill press</image:title>
</image:image>
</url>
</urlset>
Google deprecated the standalone image sitemap type, but the image: extension inside a normal sitemap remains supported and is the right mechanism here. Do not submit a separate image-only sitemap; extend the one you already have.
The crawl surface problem, in detail
Here is the mechanism that produces a six-figure crawl surprise. A single product page emits an img tag with srcset, a CSS background image, an Open Graph image, a Twitter card image, and a structured data block referencing a second image. Each of those is a URL. Multiply by six product variants and you have thirty-odd URLs per product, most of them uncrawlable by intent, all of them discoverable if the crawler parses the markup.
The compounding factor is that these URLs sit outside your main navigation graph, so they are discovered only through the pages that reference them. On a large site, that makes them a low-value, high-volume consumer of crawl attention — exactly the profile of what is usually called indexation waste.
The audit question is therefore simple and worth asking before anything else:
pattern,url_count,referenced_from,indexed_sample,verdict
/media/*,612004,"img, og:image, css",0,"not indexed, not crawled","block in robots.txt"
/media/*@2x.*,289114,img srcset,0,"not indexed","block in robots.txt"
/static/logos/*,412,header template,410,"indexed","keep"
That first row is almost always the single largest line in an image-related crawl report, and the correct treatment is nearly always the same: block it in robots.txt, because no image file needs to be in the index and none of them will ever be surfaced as a web page.
Measuring what changed
| Signal | Source | Limitation |
|---|---|---|
| LCP, by template | Field data | Lagging, population-limited |
Crawl requests to /media/ | Server logs | Does not distinguish good from bad |
| Images indexed | Search Console | Deliberately near zero |
| Image search sessions | Analytics | Small, volatile, hard to attribute |
Two of those four are useful and two are noise. Field data by template tells you whether the performance work landed. Server logs tell you whether the crawl waste stopped. The index count for image files should be zero and will stay zero. The traffic number is worth watching over quarters and will never justify the effort on its own; justify it on the performance and crawl numbers.
What does not work
Compressing images without resizing them. A 4,000-pixel-wide photo displayed at 400 pixels is a performance problem compression will not solve.
Filling alt text with keywords. It fails accessibility review, it fails image search, and it makes the site worse to use.
Lazy-loading everything. It breaks LCP on exactly the pages where LCP matters most.
Generating a variant per device width. Six breakpoints produces six URLs per image across a large catalogue, which is a crawl decision disguised as a design decision.
Blocking images in robots.txt. You are already not indexed there; blocking adds nothing and prevents the crawler from seeing images it needs for page rendering.
Treating an image sitemap as a discovery fix. It helps discovery for the images you want indexed. It does nothing for the hundreds of thousands you should never be crawling.
Where to start
Run a crawl that includes image URLs and group them by pattern. The result is almost always a small number of rows with very large populations, and the first row is nearly always a media directory that should have been blocked years ago.
Then fix the LCP image on your three highest-traffic templates: resize it, use AVIF, set explicit dimensions, and remove the lazy-loading attribute. That is a day of work and it will move the field metrics more than a quarter of optimisation elsewhere.
For the crawl side, running and monitoring crawls covers enabling asset discovery and setting limits, and crawl budgets and allowances explains how the reclaimed requests translate into more of your actual pages being fetched. If media URLs are inflating your indexation figures, indexation waste detection is the feature that separates them from the pages you actually want indexed.