In short
Discover shows each article as a card, with either a large image or a simple thumbnail. For the large image, Google recommends two things: an image at least 1,200 px wide, and permission to display it in a large format, granted by the max-image-preview:large rule (or by using AMP). Once the task is done, every article carries this rule, as a meta tag or an HTTP header, and points to a large, representative image that is identical in og:image and in the Article markup.
Why it matters
The max-image-preview rule sets the maximum size of the image preview Google may show for a page. It takes three values:
| Value | Effect |
|---|---|
none |
no image preview |
standard |
default-size preview |
large |
larger preview, up to the width of the screen |
Without the rule, Google may show a preview of the default size. It applies to all forms of search results, Discover included. A site that publishes fine photos but has not granted this permission therefore stays confined to thumbnails.
On the image side, the Discover documentation recommends compelling, high-quality images: at least 1,200 px wide, high resolution (more than 300,000 pixels in total) and a 16:9 aspect ratio. It asks you to specify this image through schema.org markup or the og:image tag, and to avoid generic images, such as the site logo, as well as text-heavy images.
None of this guarantees an appearance in Discover: these are recommendations to improve the presentation of content that is already eligible (opens in a new tab).
What it improves
- Presentation in Discover The card can go from a thumbnail to a full-width image. This is a possibility, not a commitment from Google.
- Click-through rate A large image catches the eye more than a thumbnail. Google does not publish a figure in its current documentation; measure the effect in the Discover report (opens in a new tab).
- Other surfaces The rule also applies to image previews in regular search and in Google Images.
- Social sharing The same image serves as the preview on social networks and messaging apps.
- Rankings No documented direct effect.
How to check
1. Is the rule present? Look for it in the HTML and in the headers of an article:
curl -s https://example.com/actualites/exemple-article | grep -i -o '<meta[^>]*name="\(robots\|googlebot\)"[^>]*>'
curl -s -o /dev/null -D - https://example.com/actualites/exemple-article | grep -i "x-robots-tag"
Compliant result: max-image-preview:large appears in at least one of the two outputs, and max-image-preview:none or max-image-preview:standard appears nowhere.
2. Which image is specified, and how big is it?
curl -s https://example.com/actualites/exemple-article | grep -i -o '<meta[^>]*property="og:image[^>]*>'
curl -s -o image-test.jpg https://example.com/media/exemple-1600x900.jpg && file image-test.jpg
The file command prints the dimensions: the width must reach 1,200 px. The URL must return a 200 without authentication and must not be blocked by robots.txt.
3. What does Google see? The URL Inspection tool in Search Console, with Test live URL then View tested page, shows the rendered HTML and the headers received. The Rich Results Test displays the image read from the Article markup.
How to implement
Before you start
Tag or header? Both are equivalent for Google:
<meta name="robots" content="max-image-preview:large">
X-Robots-Tag: max-image-preview:large
The tag goes in the template; that is the normal route on a CMS. The header is set on the server or the CDN (Content Delivery Network) and helps out when you have no control over the template. Three rules:
- The value is added to the other directives:
index, follow, max-image-preview:largein a single tag, or a separate tag. Google combines tags and headers. - In the event of a conflict, the most restrictive rule wins. A
max-image-preview:standardleft behind in a plugin cancels thelargeset on the server. - Apply the rule to the whole site: it has no unwanted effect on a page with no image.
For the rest of the directives, see check meta robots and X-Robots-Tag (opens in a new tab).
The image for each article:
| Criterion | Google's recommendation |
|---|---|
| Width | at least 1,200 px |
| Resolution | high, more than 300,000 pixels in total |
| Aspect ratio | 16:9 for Discover; the Article markup also accepts 4:3 and 1:1 versions |
| Subject | representative of the article; no site logo, no generic image, no text-heavy image |
| Access | crawlable and indexable URL, see allow crawler access to images (opens in a new tab) |
A 1,600 × 900 px file meets these criteria. Specify the same image in both places Google reads:
<meta property="og:image" content="https://example.com/media/budget-2027-1600x900.jpg">
<meta property="og:image:width" content="1600">
<meta property="og:image:height" content="900">
and in the image property of the markup: see configure Open Graph and X Cards (opens in a new tab) and specify authors, publisher, dates and images (opens in a new tab). Google crops automatically: keep the subject in the center and check that a landscape crop cuts off nothing essential. A large image is heavy: compress it (opens in a new tab) and serve a version sized for the screen in the page itself.
Good to know: AMP grants the same permission without the rule, but adopting AMP for that purpose alone makes no sense: the tag is enough.
Apache
Versions Apache 2.4 (mod_headers module).
In the virtual host or the .htaccess file at the root:
<IfModule mod_headers.c>
Header always add X-Robots-Tag "max-image-preview:large"
</IfModule>
add creates an additional header line without replacing an X-Robots-Tag: noindex set elsewhere, whereas set would overwrite it. Reload with sudo apachectl configtest && sudo systemctl reload apache2.
Nginx
Versions Nginx 1.18 and later.
In the server block:
add_header X-Robots-Tag "max-image-preview:large" always;
An add_header placed in a location block cancels those inherited from the server block: if your location blocks define their own headers, repeat the line there. Reload with sudo nginx -t && sudo systemctl reload nginx.
Caddy
Versions Caddy 2.
example.com {
header +X-Robots-Tag "max-image-preview:large"
root * /var/www/example
file_server
}
The + prefix adds the header without replacing an existing value. Reload with sudo systemctl reload caddy.
IIS
Versions IIS 10 (Windows Server 2016 to 2025).
In the web.config file at the root of the site:
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="X-Robots-Tag" value="max-image-preview:large" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>
Cloudflare
Versions Cloudflare dashboard, Transform Rules, all plans, November 2026.
Open the Rules overview and create a Response Header Transform Rule:
- Matching requests: all of them, or an expression limited to articles, for example
starts_with(http.request.uri.path, "/actualites/"). - Operation: add a static header, name
X-Robots-Tag, valuemax-image-preview:large. Prefer the add operation to the set one so that you do not wipe out anoindexsent by the origin. - Deploy, then test with
curl -sI.
Vercel
Versions vercel.json file, all Vercel plans, November 2026.
{
"headers": [
{
"source": "/(.*)",
"headers": [{ "key": "X-Robots-Tag", "value": "max-image-preview:large" }]
}
]
}
With Next.js, prefer the tag from the Next.js section.
Netlify
Versions _headers file, all Netlify plans, November 2026.
In the _headers file at the root of the publish directory:
/*
X-Robots-Tag: max-image-preview:large
WordPress
Versions WordPress 6.4 and later (behavior present since 5.7).
Nothing to do in the general case: since version 5.7, WordPress itself adds <meta name="robots" content="max-image-preview:large"> on any site open to indexing. Yoast SEO and Rank Math output their own robots tag, which in principle carries this value over; in Rank Math, the image preview size is set in the advanced robots meta options and should be left on “large”.
Just check that no theme or plugin has removed the rule. This line, sometimes copied from old tutorials, removes it:
remove_filter('wp_robots', 'wp_robots_max_image_preview_large');
For the image, set a featured image at least 1,200 px wide on every post: SEO plugins use it for og:image and for the Article markup. Check that the theme does not force a smaller intermediate size on og:image.
Shopify
Versions Online Store 2.0 themes (Horizon, Dawn), all Shopify plans, November 2026.
Online Store > Themes > … > Edit code, file layout/theme.liquid. If the source code of blog posts does not already contain the rule, add this in the <head>:
<meta name="robots" content="max-image-preview:large">
The preview image for blog posts comes from the post's featured image: upload a file at least 1,200 px wide.
Drupal
Versions Drupal 10 and 11.
In a custom module, add the tag to every page:
<?php
// monmodule.module
function monmodule_page_attachments(array &$attachments): void {
$attachments['#attached']['html_head'][] = [
[
'#tag' => 'meta',
'#attributes' => [
'name' => 'robots',
'content' => 'max-image-preview:large',
],
],
'monmodule_max_image_preview',
];
}
Clear the caches with drush cr. If you use the Metatag module, first see whether its robots tag settings already offer the image preview option, and use only one of the two methods. For og:image, point Metatag's Open Graph field to an image style at least 1,200 px wide.
Webflow
Versions Webflow, paid site plans, November 2026.
Site settings > Custom code > Head code: paste the <meta name="robots" content="max-image-preview:large"> tag, save and publish. For the image, bind the “Open Graph image” field of the collection template to the article's main image field.
Laravel
Versions Laravel 11 to 13.
In the shared Blade layout:
{{-- resources/views/layouts/app.blade.php --}}
<meta name="robots" content="@yield('robots', 'index, follow, max-image-preview:large')">
A page to exclude overrides the section: @section('robots', 'noindex'). For og:image, generate a 1,600 × 900 px version of the article's image on upload and reference it with an absolute URL.
Symfony
Versions Symfony 6.4, 7.4 and 8.x, Twig 3.
{# templates/base.html.twig #}
<meta name="robots" content="{% block robots %}index, follow, max-image-preview:large{% endblock %}">
A page to exclude overrides the block: {% block robots %}noindex{% endblock %}.
Next.js
Versions Next.js 15 and 16 (App Router).
In the root layout, through the Metadata API:
// app/layout.tsx
import type { Metadata } from 'next'
export const metadata: Metadata = {
metadataBase: new URL('https://example.com'),
robots: {
index: true,
follow: true,
'max-image-preview': 'large',
},
}
In the article page, generateMetadata sets the image:
// app/actualites/[slug]/page.tsx (excerpt)
openGraph: {
type: 'article',
images: [{ url: article.imageUrl, width: 1600, height: 900 }],
},
Nuxt
Versions Nuxt 3 and 4.
// nuxt.config.ts
export default defineNuxtConfig({
app: {
head: {
meta: [{ name: 'robots', content: 'index, follow, max-image-preview:large' }],
},
},
})
In the article page, useSeoMeta({ ogImage: article.imageUrl }) specifies the image. If an SEO module already manages the robots tag, read the source code of a page before adding your own: it sometimes outputs the rule already.
Astro
Versions Astro 5 to 7.
In the shared layout component:
---
// src/layouts/Base.astro
const { robots = 'index, follow, max-image-preview:large', image } = Astro.props
---
<meta name="robots" content={robots} />
{image && <meta property="og:image" content={new URL(image, Astro.site)} />}
Common mistakes
- Setting
max-image-preview:largeon the server while a plugin outputsmax-image-preview:standard: the most restrictive value wins. - Using
Header setor a CDN rule that overwrites anX-Robots-Tag: noindexyou want on staging or on PDFs. - Using the logo or a generic section image as the
og:imageof every article. - Artificially upscaling a small image to reach 1,200 px: the width is there, the quality is not.
- Specifying one image in
og:imageand another in the Article markup. - Overlaying the article's headline on the image: Google advises against text-heavy images.
- Serving the image from a subdomain or a CDN blocked by
robots.txt. - Expecting an immediate effect: Google has to recrawl the pages, and the large display remains at its discretion.
Frequently asked questions
What image size do I need for Google Discover?
For Discover, Google recommends images at least 1,200 px wide, in high resolution (more than 300,000 pixels in total) and in a 16:9 aspect ratio. A 1,600 × 900 px image fits the bill. You also need to allow large previews with the max-image-preview:large rule or through AMP, and to specify the image with og:image or schema.org markup.
Is the max-image-preview:large tag required to appear in Discover?
No, max-image-preview:large is not an eligibility requirement for Discover: indexed content that complies with the Discover policies can appear there without it. The rule allows Google to show the image in a large format rather than as a thumbnail. Without it, the preview stays at the default size. With it, the large display remains a possibility, not a guarantee.
Should I use the robots meta tag or the X-Robots-Tag header?
The two are equivalent for Google: any rule that is valid in the robots meta tag is also valid in the X-Robots-Tag header. The tag is simpler on a CMS, where it is set in the template or a plugin. The header is configured on the server or the CDN, without touching the templates. Just avoid contradictory values: the most restrictive one applies.
Does WordPress add max-image-preview:large automatically?
Yes, since version 5.7, WordPress has added the robots meta tag with max-image-preview:large on all sites open to indexing. If the option that asks search engines not to index the site is checked, the rule is not added. Check in the source code that no theme or plugin has removed it or replaced it with a more restrictive value.
Can I use the site logo as an article image?
No, Google recommends avoiding the site logo and generic images as an article's main image, in its recommendations for Discover as in those for the Article markup. The image must represent the content of the article. If an article has no photo, an illustration specific to the subject, at least 1,200 px wide, is better than a visual that is identical on every page.
Resources
- Google: Discover and your websitedevelopers.google.com
- Google: robots meta tag, data-nosnippet and X-Robots-Tagdevelopers.google.com
- Google: Article structured datadevelopers.google.com
- WordPress: Robots API and max-image-preview directive in WordPress 5.7make.wordpress.org
- Next.js: generateMetadata, robots fieldnextjs.org
- Cloudflare: response header Transform Rulesdevelopers.cloudflare.com
Updated on
Topic checklist (PDF)