Blog Details

blog
about

The product image pipeline nobody owns

The product image pipeline nobody owns

What changes on 31 January 2027

Google started warning Merchant Center accounts in August 2026. From 31 January 2027, every product image in a Merchant Center feed has to be at least 500 by 500 pixels. Not the main image only. Every image, main and additional. Products below that floor get disapproved, and disapproved products stop serving in Shopping ads and in free listings. There is no grace period after the date.

The old floor was 100 by 100 pixels, or 250 by 250 for apparel. Anything that cleared the old minimum and nothing more is now a liability. Google recommends 1500 by 1500 or larger for the listing formats it runs, which is a useful hint about how the images actually get cropped and zoomed. The upper limits are 64 megapixels and 16 MB per file. JPEG, WebP, PNG, non-animated GIF, BMP and TIFF are all accepted, and the file extension has to match the real format inside the file.

If a catalog is fed from distributor spreadsheets and supplier portals, this deadline does not announce itself as an engineering problem. It arrives as a support ticket about a product that stopped showing up, three weeks after the fact.

Images rot because nobody owns them

A typical enterprise storefront has four or five paths that put a picture on a product page. A merchandiser uploads from a phone. A supplier sends a zip file of JPEGs named by SKU. A PIM exports a URL that points at a vendor's server. A marketplace connector pulls whatever the channel API returns. A 2019 migration left behind a folder of images that were resized once, by hand, by somebody who has since left.

None of those paths validate dimensions. None of them own the job of producing the four sizes the theme actually needs. So the theme takes whatever arrived, drops it into a fixed box with CSS, and the browser downloads a 4000 pixel original to paint a 320 pixel thumbnail. On a category page with 48 products, that single shortcut is the difference between a two second load and a five second one.

The HTTP Archive Web Almanac has measured this for years. Images are the largest single contributor to page weight, and on mobile the median page carries just under a megabyte of them. At the 90th percentile it is closer to five megabytes. The numbers move a little each year. The ranking does not change.

Build the pipeline in four stages

Ingest and reject at the door

Validation belongs at upload time, not in a monthly audit. On the way in, check the pixel dimensions against the largest rendition the site actually serves, so a 400 by 400 supplier shot gets refused before it reaches the PIM instead of six months later. Check aspect ratio against the template's crop tolerance. Convert non-sRGB profiles to sRGB so colour does not shift between the photo studio and the browser. Strip GPS coordinates out of EXIF, because publishing the coordinates of a warehouse or a photographer's home is a data protection issue, not a nicety. Flatten transparency onto the correct background colour. Then store the accepted file as an immutable master, keyed by a content hash, and never touch it again.

Two of those checks earn their keep immediately. The dimension check catches the Merchant Center deadline months early. The EXIF strip catches a privacy problem that almost no catalog team has on a checklist.

Derive renditions once, not per request

Every rendition a template can ask for should exist as a file before a customer requests it. A width ladder of 320, 640, 960, 1280, 1600 and 2048 pixels covers a product grid, a zoom view and a full bleed hero. Generate two pixel densities for the small widths and stop there. Never upscale. A 600 pixel source that gets rendered at 2048 is a large file full of mush, and it will look worse than the 600 pixel original.

The format numbers are worth knowing rather than repeating. In a test at matched perceptual quality against JPEG, WebP came out a median 31.5% smaller and AVIF came out a median 50.3% smaller, with none of the AVIF files larger than the JPEG reference. AVIF wins on photographs and loses some of that advantage on flat graphics with hard edges. Most format guides still quote "AVIF is about 50% smaller than JPEG" because everybody cites the same two vendor studies in a circle, and the direction of that claim holds even where the exact figure does not.

Encoding cost is the part that gets skipped. AVIF takes several times longer to encode than WebP, and a catalog of 40,000 products with six widths each is 240,000 encodes before you count a second format. That volume points at a queue with a worker pool, sized for a bulk backfill that runs overnight, rather than a transform sitting behind an image URL. Per-request resizing on a URL works fine in development and folds under a flash sale, when a hundred people ask for the same file at the same second and the CPU has no cache to hit.

Serve the bytes the browser asked for

A picture element with a type source for AVIF, one for WebP and an image fallback is the standard shape. The attribute that gets wrong most often is sizes. A product grid showing four columns at a 1440 pixel viewport gives each card roughly 320 CSS pixels. If sizes says a hundred percent of the viewport, the browser picks the 2048 rendition and every card downloads six times the bytes it can display.

Format negotiation through the Accept header is the other trap. If the CDN cache key ignores that header, an edge node caches AVIF and hands it to a client that does not decode AVIF. The image does not appear at all. That failure shows up as a customer complaint with a screenshot, not as a lighthouse warning, and it usually takes a cache purge and a Vary header to fix properly. Cache keys have to include the format decision, or the decision has to be made at build time and locked into the URL.

For the largest image in the first viewport, mark it with fetchpriority high and leave loading lazy off it entirely. Applying native lazy loading to the largest contentful paint image delays its request until after CSS and layout resolve, which commonly adds 200 to 600 milliseconds on a phone. Everything below the fold can be lazy, and that is where lazy loading earns its place, because it frees bandwidth for the one image that matters.

Measure the element, not the score

A homepage scoring 94 in a lab audit says almost nothing about a product detail page carrying twelve gallery images and a review widget. Field data from real sessions is the only number that describes what customers experience. Pull the largest contentful paint element per template, look at what it actually is, and hold each template to a byte budget for images. When the budget breaks, the cause is usually a merchandiser uploading a print resolution file into a field that was never validated, which is stage one failing quietly.

Six failures that cost real money

  • Lazy loading applied to the hero image by a theme default. The fix is one attribute, and it is usually the highest return change on the page.
  • Missing width and height attributes, so the image reserves no space and everything below it jumps when the file lands. Format choice does nothing for layout shift; reserved dimensions do all of it.
  • Re-encoding on the fly through a query string with no cache, which turns a burst of traffic into a CPU event and takes the storefront down with it.
  • Serving AVIF under a .jpg URL without a Vary header. Caches mix formats and some clients render nothing.
  • Upscaling a small supplier image to hit a recommended size, which satisfies a checklist and produces a blurry product shot on the most viewed surface in the store.
  • Trusting a single lab score. Core Web Vitals are judged on real sessions at the 75th percentile, and the slow users are the ones the score hides.

The 60 day plan

Enumerate the catalog first. Query the product table for every image reference, resolve each one to a file, and record the pixel dimensions. The 500 by 500 failures will cluster in old categories and in one supplier feed that has not been renegotiated since the last platform migration. That list is the immediate work, and it is usually smaller than the panic suggests.

Then fix the intake. Add dimension and format validation to every upload path, including the ones nobody documented, and log rejections so the supplier conversation has evidence behind it. That single change stops the list from growing back.

After that, the renditions and the serving layer. Generate the width ladder from the master, put a picture element in the grid and gallery templates, and set sizes from the real layout at each breakpoint rather than from the viewport. Give the product hero high fetch priority and no lazy attribute. Add a byte budget per template and alert when a release blows through it.

The deadline is real, and it is also the least interesting part of the problem. Any store can resize a few thousand files in a fortnight and clear the January date. What separates the catalogs that stay clean is whether the intake path refuses a bad file and the serving layer picks a sensible rendition without asking a human. Do that and this becomes a solved problem with a monitoring dashboard attached. Skip it and the same audit gets run again in eighteen months by somebody who has to rediscover the image naming convention.

Send Us a Message