Skip to content

Image sitemap: parse image:image entries and flag pages whose main image is missing #2093

Description

@deniskern

Request: parse Google image sitemap entries (ˋ&lt;image:image&gt;&lt;image:loc&gt;ˋ under each <url>) and add a rule that flags indexable pages whose main image (og:image / Product JSON-LD image) is missing from that page's sitemap image entries.

Why: image search traffic for shops depends on product images being discoverable; the sitemap is the documented way to declare them (https://developers.google.com/search/docs/crawling-indexing/sitemaps/image-sitemaps). squirrel already reads sitemaps for crawl/sitemap-* rules, so the data is one parse away, but today the image entries are dropped.

Details that avoid false positives:

  • normalize image URLs before comparing (strip CDN size suffixes like Shopify's _800x and query strings);
  • Shopify includes product images in its sitemap by default, so a stock Shopify sitemap should produce no finding;
  • only indexable pages (200, no noindex, self-canonical), cap images per URL.

Suggested rule id: images/sitemap-missing (low severity).

Triage

Confirmed as a feature request, not a bug. The sitemap reader in packages/crawler/src/sitemaps.ts extracts loc, lastmod, changefreq and priority per <url>; ˋ&lt;image:image&gt;ˋ / ˋ&lt;image:loc&gt;ˋ children are dropped. There is no images/sitemap-missing rule today. It needs a parser change (keep image entries, capped per URL), a new rule in packages/rules/src/images/, and a docs page.

Acceptance Criteria

  • The sitemap parser keeps ˋ&lt;image:image&gt;&lt;image:loc&gt;ˋ entries per <url>, capped per URL
  • New rule images/sitemap-missing (low severity) flags an indexable page (200, no noindex, self-canonical) whose main image (og:image or Product JSON-LD image) is absent from that page's sitemap image entries
  • Image URLs are normalized before comparing (query strings and CDN size suffixes such as Shopify _800x removed)
  • A stock Shopify sitemap produces no finding (fixture test)
  • Non-indexable pages and pages without a main image are not flagged
  • A site with no image entries in its sitemap behaves as documented (decided and tested)
  • A rule docs page is added and make validate passes in docs/

Generated by Claude Code

Activity

  1. added theissue type on Nov 17, 2026
  2. added
    enhancement
    rules
    size: L
    on Nov 17, 2026
  3. added
    in-progress
    on Nov 24, 2026
  4. self-assigned this
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementin-progressrulessize: L

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions