# Size images appropriately

- Check 16.05 · Images and multimodal search · Important
- Source: https://checklist-seo-geo.com/en/images-multimodal-search/size-images-appropriately
- Serve images at the size they are displayed, cap originals on upload and meet the minimum sizes for Discover and Merchant Center.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/images-multimodal-search/size-images-appropriately.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

An image should be served at roughly the size at which it is displayed, multiplied by the screen density: 800 pixels wide for a 400-pixel slot on a high-density screen, not 4,000. Conversely, some search surfaces require fairly large images: Google Discover, article rich results, Google Merchant Center. The task is to define the useful sizes for each template, cap the size of originals on upload and generate the variants you need.

## Why it matters

The browser downloads the entire image before scaling it down for display. A 4,000 × 3,000-pixel photo displayed in an 800-pixel column transfers about twenty-five times more pixels than necessary. Compression cannot make up for that gap: this is the first image optimization to do.

Too small is also a problem. Google asks for sharp, high-resolution images for thumbnails, and sets minimums for some surfaces:

| Surface | Documented requirement |
| --- | --- |
| Google Discover | images at least 1,200 pixels wide, more than 300,000 pixels in total, and the `max-image-preview:large` setting |
| Article structured data | at least 50,000 pixels (width × height); ideally several images in 16:9, 4:3 and 1:1 aspect ratios |
| Preferred page image (`og:image`, `primaryImageOfPage`) | high resolution, no extreme aspect ratio |
| Google Merchant Center | at least 500 × 500 pixels for all products from January 31, 2027 according to Google's help, 1,500 × 1,500 or more recommended, 64 megapixels and 16 MB maximum |

These figures change: check them on the pages listed under “Resources” before locking in your templates.

The goal is therefore twofold: an original large enough for search uses, and smaller variants for display. This is what `srcset` and `sizes` make possible, covered in [use srcset and sizes](https://checklist-seo-geo.com/en/images-multimodal-search/use-srcset-sizes).

## What it improves

- **Page weight and LCP** (Largest Contentful Paint): often the biggest gain on images.
- **Lighthouse audit**: the “Improve image delivery” insight flags images larger than their display size.
- **Eligibility**: Discover, article rich results and free product listings require fairly large images.
- **Sharpness**: no more blurry images on high-density screens.
- **Storage**: originals capped at a reasonable size.

## How to check

After scrolling through the whole page to load deferred images, compare the served size and the needed size in the console:

```js
const rows = await Promise.all([...document.images].filter((img) => img.currentSrc).map(async (img) => {
  const probe = new Image();
  probe.src = img.currentSrc;
  await probe.decode().catch(() => {});
  const displayed = Math.round(img.getBoundingClientRect().width);
  return {
    file: img.currentSrc.split('/').pop().split('?')[0].slice(0, 40),
    displayed: displayed,
    needed: Math.round(displayed * devicePixelRatio),
    served: probe.naturalWidth,
  };
}));

console.table(rows.filter((row) => row.displayed > 0));
```

How to read it: a `served` column more than 1.5 times `needed` indicates an oversized image; less than `needed`, an image that will be blurry. Run the test again at mobile width and at desktop width: the right size is not the same.

For the sharing image and the structured data image, read their dimensions directly:

```bash
curl -s https://example.com/article/ | grep -o -E '<meta property="og:image(:width|:height)?" content="[^"]+"'
```

PageSpeed Insights lists oversized files and the expected savings. The Rich Results Test flags an article image that is too small.

## How to implement

### Before you start

Take an inventory of image slots by template, with the maximum display width in CSS. This table becomes the reference for developers and writers:

| Template | Slot | Max displayed width | Variants to generate | Ratio |
| --- | --- | --- | --- | --- |
| Article | Main visual | 1,200 px | 600, 900, 1,200, 1,800, 2,400 | 16:9 |
| Article | Content image | 760 px | 400, 760, 1,140, 1,520 | free |
| Product page | Main image | 640 px | 320, 640, 960, 1,280 (original of 1,500 to 2,000 kept) | 1:1 |
| Category | Product thumbnail | 300 px | 300, 450, 600 | 1:1 |
| Social sharing | `og:image` | not displayed | 1,200 × 630 | 1.91:1 |

Rules:

- **Cap originals on upload**, for example at 2,400 or 2,560 pixels on the longest side. Beyond that, the file is of no use on the web.
- **Keep an original at least 1,200 pixels wide** for article visuals and main images, because of Discover and rich results.
- **Do not generate a variant larger than the original**: upscaling creates no detail.
- **Crop to the right ratio** rather than letting CSS distort the image or cut off an arbitrary part of it.
- **Enable `max-image-preview:large`** if you are aiming for Discover: without this setting (or without AMP), Google cannot display a large thumbnail. See [check meta robots and X-Robots-Tag](https://checklist-seo-geo.com/en/indexing-canonicalization/check-meta-robots-x-robots-tag).

```html
<meta name="robots" content="max-image-preview:large">
```

To scale down a batch of originals before uploading, ImageMagick only shrinks images larger than the limit (the `>` suffix prevents any upscaling):

```bash
magick mogrify -resize "2400x2400>" -quality 85 images/*.jpg
```

### Cloudflare

Versions: Cloudflare dashboard, image transformations (all plans), November 2026.

Image transformations resize on the fly from a single original:

```html
<img src="/cdn-cgi/image/width=760,fit=scale-down,format=auto/images/atelier.jpg"
     srcset="/cdn-cgi/image/width=400,fit=scale-down,format=auto/images/atelier.jpg 400w,
             /cdn-cgi/image/width=760,fit=scale-down,format=auto/images/atelier.jpg 760w,
             /cdn-cgi/image/width=1520,fit=scale-down,format=auto/images/atelier.jpg 1520w"
     sizes="(max-width: 760px) 100vw, 760px" width="760" height="507" alt="TIG welding station in the workshop">
```

`fit=scale-down` (the default value) never enlarges the image. First enable transformations for the zone (`Images > Transformations` in the account dashboard). Each distinct width counts as a billable transformation beyond the free volume: stick to a few fixed widths.

### AWS

Versions: Amazon S3 and CloudFront, Dynamic Image Transformation for Amazon CloudFront solution 8.x, November 2026.

The AWS “Dynamic Image Transformation for Amazon CloudFront” solution resizes originals stored in S3 on demand and caches the variants in CloudFront. Otherwise, generate the variants at build or upload time (sharp, ImageMagick) and put them in S3: neither S3 nor CloudFront resizes on its own.

### Shared hosting

Shared hosting resizes nothing on the fly. Scale down originals before uploading them (command above, Squoosh, or your photo software's export at 2,400 pixels wide), and let the CMS generate the variants.

### WordPress

Versions: WordPress 6.4 to 7.1.

WordPress generates several sizes at each upload: thumbnail (150 px), medium (300 px), medium large (768 px), large (1,024 px), then 1,536 and 2,048 px. The thumbnail, medium and large sizes are set in `Settings > Media`. Since version 5.3, originals larger than 2,560 pixels are scaled down to that size.

Add the sizes specific to your templates in the theme:

```php
add_action('after_setup_theme', function (): void {
    add_image_size('article-hero', 1200, 675, true);
    add_image_size('product-card', 600, 600, true);
});
```

The last argument, `true`, crops to the exact ratio. To cap originals at a limit other than 2,560 pixels:

```php
add_filter('big_image_size_threshold', function (): int {
    return 2400;
});
```

New sizes only apply to new uploads: regenerate existing images with `wp media regenerate --yes` (WP-CLI) or a regeneration plugin. In templates, request the appropriate size (`the_post_thumbnail('article-hero')`) rather than `full`.

### Shopify

Versions: Shopify Online Store 2.0 themes, all plans, November 2026.

The `image_url` filter requests the desired width from Shopify's CDN (up to 5,760 pixels), and `image_tag` generates the variants:

```liquid
{{ product.featured_image | image_url: width: 1280 | image_tag:
  widths: '320, 640, 960, 1280',
  sizes: '(min-width: 990px) 640px, 100vw',
  alt: product.featured_image.alt }}
```

Never use `image_url: width: 5760` or the original for a thumbnail. Upload product photos at least 1,500 pixels on each side, square if your theme displays square thumbnails, to stay comfortably within Merchant Center requirements.

### PrestaShop

Versions: PrestaShop 8 and 9.

In `Design > Image Settings`, each image type (for example `home_default`, `medium_default`, `large_default`) has its own dimensions. Adjust them to the width your theme actually displays, multiplied by two for high-density screens, then regenerate thumbnails at the bottom of the page. Upload square originals if the theme displays square thumbnails: otherwise PrestaShop adds background bars.

### Magento

Versions: Magento Open Source and Adobe Commerce 2.4 (up to 2.4.9).

Catalog image dimensions are declared in the theme's `etc/view.xml` file:

```xml
<view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/view.xsd">
    <media>
        <images module="Magento_Catalog">
            <image id="category_page_grid" type="small_image">
                <width>480</width>
                <height>480</height>
            </image>
            <image id="product_page_image_medium" type="image">
                <width>960</width>
                <height>960</height>
            </image>
        </images>
    </media>
</view>
```

Then regenerate the resized images: `bin/magento catalog:images:resize`.

### Drupal

Versions: Drupal 10 and 11.

In `Configuration > Media > Image styles`, create one style per slot with the “Scale” effect (without upscaling) or “Scale and crop” for a fixed ratio. Then assign the style to the image field in `Manage display`, or group several styles in a responsive image style (core Responsive Image module).

### Wix

Versions: Wix and Squarespace, all plans, November 2026.

Wix automatically resizes images according to their slot and the screen. So does Squarespace. Upload originals of about 2,500 pixels on the longest side: larger is useless, smaller risks blur on large screens.

### Webflow

Versions: Webflow, all plans, November 2026.

Webflow automatically generates responsive variants of images uploaded into Image elements. Background images do not benefit from this: scale them down before uploading. For a CMS collection image, upload an original at least 1,200 pixels wide.

### Laravel

Versions: Laravel 11 to 13, Intervention Image 3 and 4, spatie/laravel-medialibrary 11.

With Intervention Image, cap the original and generate the variants on upload, in a queued job. `scaleDown()` never enlarges an image smaller than the requested width. With spatie/laravel-medialibrary, declare conversions instead (`addMediaConversion`) or enable responsive images (`withResponsiveImages()`).

#### Intervention Image 4

Version 4 (PHP 8.3 minimum) replaces `new ImageManager()` and `read()` with `ImageManager::usingDriver()` and `decodePath()`. `save()` chooses the format from the extension and accepts the quality:

```php
use Intervention\Image\Drivers\Gd\Driver;
use Intervention\Image\ImageManager;

$manager = ImageManager::usingDriver(Driver::class);

$source = storage_path('app/public/images/atelier.jpg');

foreach ([400, 760, 1140, 1520] as $width) {
    $manager->decodePath($source)
        ->scaleDown(width: $width)
        ->save(storage_path("app/public/images/atelier-{$width}.webp"), quality: 80);
}
```

#### Intervention Image 3

```php
use Intervention\Image\Drivers\Gd\Driver;
use Intervention\Image\ImageManager;

$manager = new ImageManager(new Driver());

$source = storage_path('app/public/images/atelier.jpg');

foreach ([400, 760, 1140, 1520] as $width) {
    $manager->read($source)
        ->scaleDown(width: $width)
        ->toWebp(80)
        ->save(storage_path("app/public/images/atelier-{$width}.webp"));
}
```

### Next.js

Versions: Next.js 15 and 16 (App Router and Pages Router).

`next/image` generates variants from the `deviceSizes` list (640 to 3,840 px by default) and the `imageSizes` list (32 to 384 px since Next.js 16, 16 to 384 px in Next.js 15). Adapt them to your templates to avoid unnecessary variants:

```js
module.exports = {
  images: {
    deviceSizes: [640, 828, 1080, 1200, 1920],
    imageSizes: [96, 160, 320, 480],
  },
};
```

The component's `sizes` property then determines which ones the browser picks.

### Nuxt

Versions: Nuxt 4 with the @nuxt/image 2 module; same syntax in Nuxt 3 with @nuxt/image 1.

In `nuxt.config.ts`, the `image.screens` key defines the breakpoints. On the component, `sizes` gives the displayed width per breakpoint:

```html
<NuxtImg src="/images/atelier.jpg" sizes="100vw md:760px" width="760" height="507" alt="TIG welding station in the workshop" />
```

### Astro

Versions: Astro 5.10 to 7.

Since Astro 5.10, the `layout` property generates the variants and the `sizes` attribute:

```html
<Image src={atelier} alt="TIG welding station in the workshop" layout="constrained" />
```

`constrained` scales the image down without ever displaying it larger than its original width, or than the width passed in `width`. Widths larger than the original are ignored. A site-wide default is set in `astro.config.mjs` (`image.layout`).

## Common mistakes

- **Serving the original everywhere** (`full` in WordPress, `width: 5760` in Shopify): several megabytes for a thumbnail.
- **Shrinking the original too much on upload**, below 1,200 pixels: no more eligibility for Discover, blurry thumbnails on large screens.
- **Upscaling a small image** to reach a minimum: no detail added, a blurry result.
- **Forgetting high-density screens**: an image served at exactly the CSS width looks blurry on a recent phone.
- **Letting CSS distort the image** (`width` and `height` forced without `object-fit`) instead of cropping it to the right ratio.
- **Choosing a sharing image with an extreme ratio** (a very narrow banner): unpredictable cropping in previews and results.
- **Changing the theme's sizes without regenerating thumbnails**: the old dimensions are still served.

## Frequently asked questions

### What is the maximum size for images on a website?

For originals, about 2,400 to 2,560 pixels on the longest side is enough; WordPress caps them at 2,560 pixels by default. For display, serve a variant close to the displayed width multiplied by the screen density, often twice the CSS width on mobile. Keep originals at least 1,200 pixels wide for article visuals, as Google Discover requires.

### What image size do I need to appear in Google Discover?

Google asks for images at least 1,200 pixels wide, with a total resolution above 300,000 pixels, and for the max-image-preview:large setting to be enabled in the robots meta tag, or for AMP to be used. Point to this large image through structured data or the og:image tag, and avoid the site logo or an image full of text. These conditions make a page eligible, without guaranteeing display.

### Do oversized images hurt SEO?

Indirectly. An image much larger than its display size makes the page heavier and delays LCP, one of the Core Web Vitals. Google applies no penalty to a large image as such, and even asks for high-resolution images for Discover and rich results. The solution is to keep a large enough original and serve smaller variants with srcset and sizes.

### What size should product images be in Merchant Center?

Google Merchant Center help announces a minimum of 500 × 500 pixels for all products from January 31, 2027, recommends 1,500 × 1,500 pixels or more, and rejects images over 64 megapixels or 16 MB. The requirements change: check the help page on product images before preparing your catalog.

## Resources

- [Google Search Central: image SEO best practices](https://developers.google.com/search/docs/appearance/google-images)
- [Google Search Central: Google Discover](https://developers.google.com/search/docs/appearance/google-discover)
- [Google Search Central: Article structured data (image property)](https://developers.google.com/search/docs/appearance/structured-data/article)
- [Google Search Central: robots meta tag and max-image-preview](https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag)
- [Google Merchant Center: image requirements](https://support.google.com/merchants/answer/6324350)
- [WordPress: add_image_size](https://developer.wordpress.org/reference/functions/add_image_size/) and [big_image_size_threshold](https://developer.wordpress.org/reference/hooks/big_image_size_threshold/)
- [Shopify: image_url filter](https://shopify.dev/docs/api/liquid/filters/image_url)
- [Cloudflare: transform via URL](https://developers.cloudflare.com/images/transform-images/transform-via-url/)
- [Next.js: deviceSizes and imageSizes](https://nextjs.org/docs/app/api-reference/components/image)

Next steps: [use srcset and sizes](https://checklist-seo-geo.com/en/images-multimodal-search/use-srcset-sizes) and [optimize key images](https://checklist-seo-geo.com/en/images-multimodal-search/optimize-key-images).
