Skip to content

All checks / Images

Missing image metadata for Search/Discover thumbnails

Google uses both schema.org markup and the og:image tag as sources when determining image thumbnails in Google Search and Discover.

Info image-preferred-source-metadata

In SEOCode's checks since 9 May 2026


Why this matters.

Google uses both schema.org markup and the og:image tag as sources when determining image thumbnails in Google Search and Discover. To increase the likelihood of your preferred image being selected, specify it consistently using both og:image and schema.org image properties in your structured data.

Runs on .html .jsx .tsx .vue .svelte · Advisory checks point at an improvement. They never block a merge.


How to resolve it.

Add og:image: <meta property="og:image" content="https://yourdomain.com/preferred-image.jpg" /> and include the same image URL in your JSON-LD:

{
  "@type": "Article",
  "image": "https://yourdomain.com/preferred-image.jpg"
}

SEOCode writes this fix for you

On a pull request the fix arrives as a suggestion you can commit in one click, when the change is unambiguous on the line.




Every check, on every pull request.

SEOCode runs the full ruleset on each change and comments the fixes inline.

Free for public repositories · no credit card