How do I make sure my product images meet Google Merchant Center's size requirements?
Last updated: Nov-26-2026
$minSide_512/$maxMp_64000000/if_w_lt_$minSide_or_h_lt_$minSide/if_w_lt_h/c_scale,w_$minSide/e_unsharp_mask/if_else/c_scale,h_$minSide/e_unsharp_mask/if_end/if_end/c_limit,w_$maxMp_mul_0.99_mul_w_div_h_pow_0.5/c_limit,h_16000,w_16000/f_webp/q_auto
Images that are already large enough keep their size, and the pixel and side caps keep outputs within Google's pixel limit and make it unlikely that files exceed the file-size limit. Check Merchant Center for file-size errors.
The question
"How do I make sure my product images meet Google Merchant Center's minimum image size?"
Google Merchant Center requires each product's main image (image_link) to be at least 500x500 pixels (and recommends around 1500x1500). A main image below the minimum causes the product to be disapproved and stop showing on Google. An additional image (additional_image_link) below the minimum isn't shown, but the product itself isn't disapproved.
For image_link, Google asks for:
| Requirement | What it means |
|---|---|
| At least 500x500 pixels | The image can't fall below this size. Google recommends around 1500x1500. |
| A supported file type | AVIF, for example, isn't accepted. |
| A matching file extension | The URL has no extension, or an extension that matches the actual format. |
| No more than 64 megapixels | Larger images are rejected. |
| No more than 16 MB | Larger files are rejected. |
| A valid URL | ASCII only, RFC 3986 compliant, and under 2,000 characters. |
| No added borders | Padding a small image onto a larger canvas isn't allowed. |
For the current requirements, see Google's image requirements documentation.
The solution
The transformation upscales only the images that need it, leaves compliant images at their original size, and keeps every output within Google's limits.
To demonstrate, this 288x180 product image is below the minimum:
After adding the transformation, the short side is scaled to 512 pixels (the image is now 819x512):
The delivery URL pattern is:
How it works
| Part | What it does |
|---|---|
$minSide_512, $maxMp_64000000
|
User-defined variables for the target short side and the pixel cap, so you can change them in one place. |
if_w_lt_$minSide_or_h_lt_$minSide |
A conditional transformation that applies the resize only when either side is below $minSide. Images that are already large enough skip the resize and the sharpening. |
if_w_lt_h, if_else, if_end
|
A nested condition that finds the shorter side and scales it to exactly $minSide with c_scale, keeping the aspect ratio. |
e_unsharp_mask |
Light sharpening that restores some of the crispness that plain scaling softens. It uses the default strength of 100. To make it stronger or softer, add a strength between 1 and 2000 (for example e_unsharp_mask:200) in both places it appears. See e_unsharp_mask. |
c_limit,w_$maxMp_mul_0.99_mul_w_div_h_pow_0.5 |
Caps the total pixels at Google's 64 megapixel limit (99% of $maxMp, to allow for rounding), keeping the aspect ratio. c_limit only ever shrinks an image, so no condition is needed. |
c_limit,h_16000,w_16000 |
A separate safeguard: the WebP format can't store an image more than 16,383 pixels wide or tall. A very wide banner can be far below 64 megapixels and still exceed that, so the pixel cap alone doesn't catch it. |
f_webp |
Delivers every image as WebP. A condition can't check the format of the source file, so the output format has to be the same for every image. WebP keeps transparency, converts formats that Google doesn't accept (such as AVIF), and typically keeps files small, which helps stay under 16 MB. |
q_auto |
Lets Cloudinary choose the compression level for each image. |
The target is 512 rather than 500 because Google says "at least 500" and may test with subtle cropping. A 512 target leaves a small margin and absorbs upstream exports that round down to 499, while keeping the upscale modest: larger targets add pixels without adding detail.
To move toward Google's recommended 1500x1500, raise $minSide. Upscaling adds pixels, not detail, so a larger target doesn't make the image look better.
Find the undersized images
You don't need to find undersized images before applying the transformation, because it only resizes images that fall below the minimum. It can still help to see how many are affected, for example to decide whether to update only some URLs.
In the Media Library, enter this search expression in the search bar:
To list them programmatically, use the Search API with the same expression. The response includes total_count. Narrow the search to the products in your feed by adding a condition, such as AND tags=google_shopping or AND asset_folder=products.
The originals aren't the only source of small images. Google checks the image your feed URL actually delivers, so a URL that includes w_300 produces a 300-pixel image even when the original is 3000 pixels wide. Check the transformations in your feed URLs, including any named transformations they use. If a named transformation also serves other sites or channels, create a new one for your Google feed instead of changing it.
Limits to be aware of
-
Plan output limits: Some plans limit the output image size (for example, 25 megapixels). If yours does, set
$maxMpto that limit. Otherwise, a source above the limit fails before the cap can shrink it. -
Always WebP: An image that's already compliant isn't resized, but it's re-encoded once as WebP with
q_auto. JPEG and PNG sources are converted too. Google doesn't require that change, but a transformation can't read the source format, and PNG output for large transparent images can exceed the 16 MB limit. - No per-image file size check: No property exposes file size, so the 64 megapixel cap and WebP compression are intended to keep files under the 16 MB limit, but they don't test or guarantee it. Check Merchant Center for file-size errors after you update your feed.
- Very small sources: Sharpening has no measurable effect on sources under roughly 120 pixels. They're still scaled to the minimum size, but scaling can't add detail that isn't in the original, so they look soft. If you're comfortable with AI-generated detail, you can add e_upscale at the start of the chain. It scales each dimension by four, but the extra detail is AI-generated, so the image may show details your real product doesn't have. It also uses more transformation credits than a plain resize, and doesn't preserve transparency (a transparent background becomes white). Review the results before publishing them to your feed.
-
Keep the nested condition intact: Don't insert components before the inner
if, or the nested condition stops matching.
Use it in your product feed
The image URLs in your Google feed can differ from the ones your website uses, so update the feed itself. After the feed is updated, Google's crawler still has to fetch the new images before the products are re-evaluated, so allow time for that and confirm in Merchant Center that any image warnings clear.
To manage the transformation in one place, save it as a named transformation and reference it from your feed URLs. Create a new one for the Google feed rather than editing one that other sites or channels also use, because changing a named transformation affects every URL that references it. If you do decide to update an existing named transformation, see How can I update a named transformation?