In short
A page's main image is the one that represents it: an article's visual, a product photo, a photo of a business location. Google uses it for the thumbnail in text results, in Discover and in Google Images; social networks display it in link previews. The task is to choose a representative, high-resolution image for each template, declare it in the metadata (og:image, structured data), allow large thumbnails and make it load first. Expected result: the same sharp, relevant image everywhere the page appears.
Why it matters
When a page contains several images, Google chooses the one that will illustrate it in results. It lists three ways to signal your preference:
- the Schema.org
primaryImageOfPageproperty on theWebPageobject; - the
imageproperty of the page's main entity (mainEntityormainEntityOfPage), for example the article or the product; - the
og:imagetag.
Its guidelines for this image: relevant and representative of the page, high resolution, no extreme aspect ratio, and not a generic image such as the logo or an image full of text.
For Google Discover, it asks for images at least 1,200 pixels wide and the max-image-preview:large setting (or AMP), which allows it to display a large thumbnail. For article structured data, at least 50,000 pixels, ideally in several aspect ratios (16:9, 4:3 and 1:1).
The main image is also, very often, the slowest element on the page: the LCP (Largest Contentful Paint). The same image therefore has to be both large for search engines and light for visitors.
For multimodal search (Google Lens, assistant answers that display images), a sharp, faithful photo of what the page describes is the best starting point. No documented mechanism guarantees that it will be picked up; a blurry, generic or text-covered photo simply has less chance of being judged relevant.
What it improves
- Thumbnails in results An image you chose rather than one left to chance (logo, banner, icon).
- Google Discover and article results Eligibility for large images.
- Google Images A quality image, surrounded by the content that describes it.
- Social and messaging shares A consistent preview. See configure Open Graph and X Cards (opens in a new tab).
- LCP Faster display of the main visual.
- Click-through rate A plausible but variable effect; Google points out that sharp, high-quality images attract more, without giving figures.
How to check
On a sample of pages from each template (home, article, category, product, local page):
curl -s https://example.com/guides/choisir-fauteuil/ | grep -o -i -E '<meta (property|name)="(og:image[^"]*|robots|twitter:image)" content="[^"]+"'
curl -s https://example.com/guides/choisir-fauteuil/ | grep -o -E '"(primaryImageOfPage|image)"[^]]{0,200}'
Compliant result:
- an
og:imageas an absolute URL, specific to the page (not the logo repeated across the whole site); - an image declared in the structured data, identical to or consistent with
og:image; max-image-preview:largein therobotstag if you are aiming for Discover;- an image at least 1,200 pixels wide for articles.
Then check:
- The Rich Results Test: errors or warnings on the
imageproperty of articles and products. - PageSpeed Insights: the identified LCP element is indeed the main image, without lazy loading, with high priority. See optimize the LCP image without lazy loading (opens in a new tab).
- Google results: search for a few pages by their title and look at the thumbnail displayed. If it is the logo or an off-topic image, the declaration is missing or ignored.
How to implement
Before you start
Set one rule per template:
| Template | Main image | Recommended format | Pitfalls |
|---|---|---|---|
| Article, guide | Photo or illustration of the subject | 16:9, at least 1,200 px wide | Generic illustration image, banner with embedded title |
| Product page | Photo of the product on a neutral background | 1:1, 1,500 px or more | Promotional visual, watermark, added text |
| Category | Representative product or scene | 16:9 or 4:3 | Brand logo |
| Local page | Storefront, team or on-site work | 16:9 | Stock photo |
| Home | Visual that shows the business | 16:9 | Carousel where each slide changes the main image |
Common rules:
- A real, sharp, representative image, placed at the top of the page, near the title, in an
<img>tag in the HTML (not a CSS background, which Google does not index). - An original at least 1,200 pixels wide; display variants are generated from it. See size images appropriately (opens in a new tab).
- Descriptive alt text and, if useful, a caption. See write relevant ALT text without keyword stuffing (opens in a new tab).
- The same image URL in
og:imageand in the structured data; a stable, crawlable URL (not blocked by robots.txt), over HTTPS. - No lazy loading on this image,
fetchpriority="high", and only one priority image per page. max-image-preview:largein the robots tag, unless there is a reason not to:
<meta name="robots" content="max-image-preview:large">
Target tags in an article's <head>:
<meta property="og:image" content="https://example.com/images/fauteuil-club-cognac-1200.jpg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="675">
<meta property="og:image:alt" content="Cognac leather club armchair in a living room">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "WebPage",
"@id": "https://example.com/guides/choisir-fauteuil/#webpage",
"url": "https://example.com/guides/choisir-fauteuil/",
"primaryImageOfPage": { "@id": "https://example.com/guides/choisir-fauteuil/#image" }
},
{
"@type": "ImageObject",
"@id": "https://example.com/guides/choisir-fauteuil/#image",
"url": "https://example.com/images/fauteuil-club-cognac-1200.jpg",
"width": 1200,
"height": 675
},
{
"@type": "Article",
"headline": "How to choose a club armchair",
"mainEntityOfPage": { "@id": "https://example.com/guides/choisir-fauteuil/#webpage" },
"image": [
"https://example.com/images/fauteuil-club-cognac-16x9.jpg",
"https://example.com/images/fauteuil-club-cognac-4x3.jpg",
"https://example.com/images/fauteuil-club-cognac-1x1.jpg"
]
}
]
}
</script>
In the <body>, at the top of the article:
<img src="/images/fauteuil-club-cognac-1200.jpg"
srcset="/images/fauteuil-club-cognac-600.jpg 600w, /images/fauteuil-club-cognac-1200.jpg 1200w, /images/fauteuil-club-cognac-1800.jpg 1800w"
sizes="(min-width: 1200px) 760px, 100vw" width="1200" height="675"
alt="Cognac leather club armchair in a living room" fetchpriority="high">
For product pages intended for Merchant Center, the main image must clearly show the item, without added promotional text, watermarks or logos. See set up Merchant Center and free listings (opens in a new tab).
WordPress
Versions WordPress 6.4 and later; Yoast SEO, Rank Math and SEOPress in their November 2026 versions.
- Featured image: set it for every post and page (right-hand panel of the editor, “Featured image”). This is the image SEO plugins use.
- Yoast SEO, Rank Math or SEOPress use the featured image in
og:imageand in their structured data. Yoast declares it as theprimaryImageOfPageof theWebPage. Each plugin also lets you choose a different social image in the social tab of the plugin's box, below the editor. max-image-preview:large: WordPress adds it to the robots tag on its own since version 5.7, as long as the site is not set to discourage search engines (Settings > Reading). Check that no plugin removes it.- Display: since version 6.3, WordPress adds
fetchpriority="high"to the first large image in the content. If your theme displays the featured image above the content, check that it does receive this attribute and notloading="lazy".
Shopify
Versions Shopify admin and Online Store 2.0 themes (Horizon, Dawn), all plans, November 2026.
- Product pages: the product's first media item is the main image. Put a photo of the product alone there, on a neutral background; put lifestyle photos after it.
og:image: the Horizon and Dawn themes, and themes derived from them, fill it with thepage_imageLiquid object: image of the product, article or collection, and the social sharing image set inOnline Store > Preferencesfor other pages.max-image-preview:large: add it in the<head>oflayout/theme.liquid(Online Store > Themes > Edit code):
<meta name="robots" content="max-image-preview:large">
- Blog posts: set the article's image in the editor; it feeds
og:imageand the theme's structured data.
PrestaShop
Versions PrestaShop 8 and 9, Classic theme.
The image set as a product's “cover” (checkbox in the product page's image management) is the main image: it feeds the category thumbnail, og:image and the theme's product structured data. Choose a photo of the product alone for it. For CMS and category pages, the sharing image depends on the theme or an SEO module: check the tag produced.
Magento
Versions Magento Open Source and Adobe Commerce 2.4.6 to 2.4.9.
In the product page (Catalog > Products, “Images And Videos” section), assign the “Base” role to the main photo: it is used on the product page and in the metadata. The “Small” and “Thumbnail” roles can designate different crops for listings. Complete og:image tags and structured data depend on the theme or an SEO extension.
Drupal
Versions Drupal 10 and 11, Metatag 2 and Schema.org Metatag 3 modules.
With the Metatag module, set og:image per content type from a token of the main image field (for example [node:field_image:entity:url]), in Configuration > Search and metadata > Metatag. The Schema.org Metatag module adds the image property to the structured data. Also enable the max-image-preview directive in Metatag's robots settings.
Wix
Versions Wix Editor and Wix Studio, all plans, November 2026.
In each page's SEO settings (Settings > SEO, then the page's settings), in the social share section, choose the sharing image. For blog posts, it is the post's cover image. Structured data and the robots tag are managed by the platform; check the result with the Rich Results Test.
Webflow
Versions Webflow Designer, all site plans, November 2026.
In each page's settings, Open Graph section, set the sharing image. For a CMS collection, bind the Open Graph image to the collection's main image field, in the collection template's settings. Add max-image-preview:large and your structured data in the custom <head> code of the site or the template.
Laravel
Versions Laravel 11 to 13.
Pass the main image to the layout from the controller or the page component, and write the tags in the <head>:
@push('head')
<meta name="robots" content="max-image-preview:large">
<meta property="og:image" content="{{ $article->heroImageUrl(1200) }}">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="675">
<script type="application/ld+json">
{!! json_encode([
'@context' => 'https://schema.org',
'@type' => 'Article',
'headline' => $article->title,
'image' => [$article->heroImageUrl(1200)],
], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_HEX_TAG) !!}
</script>
@endpush
The head stack must be rendered in the layout with @stack('head'). The spatie/schema-org package lets you build the JSON-LD with typed objects.
Next.js
Versions Next.js 15 and 16 (App Router).
With the App Router's metadata API:
import type { Metadata } from 'next';
export const metadata: Metadata = {
openGraph: {
images: [{ url: 'https://example.com/images/fauteuil-club-cognac-1200.jpg', width: 1200, height: 675, alt: 'Cognac leather club armchair in a living room' }],
},
robots: {
googleBot: { 'max-image-preview': 'large' },
},
};
For a dynamic page, return the same object from generateMetadata(). Add the JSON-LD in a <script type="application/ld+json"> tag in the page component, and display the image with next/image using loading="eager" and fetchPriority="high". Since Next.js 16, the priority property of next/image is deprecated: replace it with these two attributes, or with preload if the image must also be preloaded from the <head>.
Nuxt
Versions Nuxt 3 and 4, @nuxt/image module 1 and 2.
useSeoMeta({
ogImage: 'https://example.com/images/fauteuil-club-cognac-1200.jpg',
ogImageWidth: 1200,
ogImageHeight: 675,
robots: 'max-image-preview:large',
});
Display the image with NuxtImg using loading="eager", fetchpriority="high" and preload.
Astro
Versions Astro 5.10 to 7.
In the layout, receive the main image as a prop and write the og:image and robots tags in the <head>. For display, the priority property of the Image component (Astro 5.10 and later) applies loading="eager", decoding="sync" and fetchpriority="high". Use getImage() to get the URL of a 1,200-pixel variant to put in og:image.
Common mistakes
- The logo as the
og:imageon every page: Google advises against it as the preferred image, and every share looks the same. - A banner with the title embedded as the main image: an image full of text, unreadable as a thumbnail.
- A different image in
og:image, the structured data and the page: contradictory signals. - A main image as a CSS background: not indexed by Google, and discovered late by the browser.
- An image that is too small (under 1,200 pixels wide): no large thumbnail in Discover.
max-image-preview:noneorstandardinherited from an old setting: reduced or missing thumbnails.- Lazy loading on the main image: delayed LCP.
- A generic stock image: not very distinctive, already present on thousands of sites. See use original images (opens in a new tab).
Frequently asked questions
How do I choose the image that appears in Google results?
Google chooses itself, but accepts hints. Declare the image you want through the Schema.org primaryImageOfPage property, through the image property of the page's main entity, or through the og:image tag. Choose a representative, high-resolution image, with no extreme aspect ratio, that is neither the logo nor an image full of text. None of these hints guarantees the final choice.
What is max-image-preview:large?
It is a robots meta tag directive that allows Google to display a large preview of the page's images in its results. Google makes it a condition for large images in Discover, along with images at least 1,200 pixels wide. WordPress has added it by default since version 5.7; on other platforms, add it to the page header.
Does the Open Graph image help SEO?
It is first used for link previews on social networks and messaging apps. Google also lists it among the ways to tell it a page's preferred image, along with structured data. It is not a ranking factor, but it influences the thumbnail displayed and therefore how appealing the result is. Use the same image, consistent with the page, in og:image and in the JSON-LD.
Should the main image be lazy-loaded?
No. The main image is often the slowest element on the page, the one LCP measures. It must be an img tag present in the initial HTML, without lazy loading, with the fetchpriority="high" attribute on that image only. Lazy loading remains reserved for images below the first screen.
Resources
- Google Search Central: specify a preferred image with metadatadevelopers.google.com
- Google Search Central: Google Discoverdevelopers.google.com
- Google Search Central: Article structured datadevelopers.google.com
- Google Search Central: robots meta tagdevelopers.google.com
- Schema.org: primaryImageOfPage and ImageObjectschema.org
- The Open Graph protocologp.me
- Google Merchant Center: image requirementssupport.google.com
- Next.js: Image componentnextjs.org
Updated on
Topic checklist (PDF)