Product images do two jobs at once. They sell — shoppers judge a product page by its photography before they read a word — and they rank, in Google Images, in the image packs that sit above organic results, and increasingly as the preview images AI assistants pull when they describe your product. Stores tend to invest heavily in the first job and leave the second to whatever the platform does automatically.

What the platform does automatically is not nothing, but it is not alt text, and it is not a compression strategy. Google’s image SEO documentation is unusually concrete about what it wants: images embedded with standard HTML image elements, descriptive filenames and alt text, responsive markup, supported formats, and speed. None of it is exotic. All of it is skippable if the upload workflow treats images as decoration.

This guide covers the three fundamentals the title promises — alt text, compression and lazy loading — plus the platform mechanics on Shopify, WooCommerce and BigCommerce that decide whether your work actually reaches the crawler.

Alt text: describe the product, not the keywords

Google’s position is unambiguous: “the most important attribute when it comes to providing more metadata for an image is the alt text”, and it uses that text “along with computer vision algorithms and the contents of the page to understand the subject matter of the image”. Alt text also does accessibility work — screen readers and low-bandwidth users rely on it — which is why the guidance and the W3C’s overlap almost perfectly.

The rules, with Google’s own examples:

Example Verdict
<img src="puppy.jpg"/> Bad — no alt text at all
alt="puppy dog baby dog pups puppies…" Bad — keyword stuffing; Google calls this a negative user experience that “may cause your site to be seen as spam”
alt="puppy" Better
alt="Dalmatian puppy playing fetch" Best — useful, information-rich, in context

For products, that translates into a simple formula: what the product is + the distinguishing attribute a shopper is looking at. “Men’s waterproof hiking boot, brown leather” beats “boots”, “hiking boots”, and the keyword-stuffed paragraph equally. If the image shows the product being used or worn, say so — the alt text should describe the image, not the SKU.

Practical rules for a catalog workflow:

  • One description per image, written where the image is uploaded — not copied from the product title across the gallery. Gallery images of the same product from different angles get different descriptions (“sole tread of the brown hiking boot”, “boot shown on a model, side view”).
  • Decorative images get empty alt (alt="") so screen readers skip them. Product photography is rarely decorative; lifestyle banners often are.
  • Alt text is not a meta description. No brand tagline, no “buy now”, no price.

Filenames follow the same logic. Google: “when possible, use filenames that are short, but descriptive” — my-new-black-kitten.jpg beats IMG00023.JPG, and generic names like image1.jpg should be avoided. Its advice for large sites is automation: “if your site has thousands of images, you might want to consider automating the naming of the images” — and if you localize, translate the filenames too.

Where alt text lives on each platform

  • Shopify: alt text is editable in the media library (Shopify lists it among the manual optimizations in its SEO overview). Theme-level images rendered through Shopify’s image_tag filter carry an alt option — set it explicitly in the theme rather than hoping a filename passes for a description.
  • BigCommerce: for images placed in product, category or page content, the platform’s instruction is specific: “When using images in the description, add the image description in the WYSIWYG editor.” Product photos added through the product experience carry their own description fields. The default robots.txt even blocks the old /productimage.php lightbox endpoint “to prevent duplicate content, missing title tag and description warnings” — the platform has long known images generate metadata problems when left unmanaged.
  • WooCommerce / WordPress: alt text is a field on the media attachment; wp_get_attachment_image() renders it. Product galleries inherit the attachment alt. Bulk-check the media library after a catalog import — imported images are the classic source of empty alt fields.

Compression: resize at delivery, not just at upload

Two separate problems hide inside “compression”: the file is too heavy for the slot it renders in, and the format is older than it needs to be. Google’s guidance connects image quality to search performance directly — sharp images “can increase the likelihood of getting traffic from users”, while images are “often the largest contributor to overall page size” — and recommends applying modern image optimization and responsive techniques, measured with PageSpeed Insights.

Serve the size you render. The strongest lever is delivery-time resizing:

  • Shopify: the image_url filter applies CDN transformations — width/height up to 5760px, crop modes (top, center, bottom, left, right, region), and image_tag generates srcset, alt, width and height from it. Shopify’s theme performance docs are explicit about why dimensions matter: “Without width and height the browser can’t reserve layout space, and the image shifts the page as it loads.” Its quality parameter accepts 10–90, but Shopify’s own advice is to leave it alone unless you’ve measured — “the automatic result is often smaller than an explicit high value”.
  • BigCommerce: image display dimensions are theme-level — product cards, carousel, logo and swatch sizes are set in Page Builder’s Image sizes and Theme Styles, and the platform’s image settings guide recommends matching your uploads to the theme’s documented dimensions and aspect ratios rather than uploading huge files for small slots. Category images and other types without built-in settings need theme-file presets.
  • WooCommerce / WordPress: core generates intermediate sizes on upload and adds srcset/sizes at render time (the same output pipeline that adds lazy loading — see below). The discipline is upload-resolution control: a 4000px source for a 600px slot burns CPU on every regenerate.

Formats. Google Search supports images referenced in src as BMP, GIF, JPEG, PNG, WebP, SVG and AVIF, and says the filename extension should match the file type. Modern formats are a delivery decision, not a risk: Shopify’s CDN “automatically detects which image formats are supported by the client (e.g. AVIF) and selects a file format for optimal quality and file size”. BigCommerce’s product image API accepts JPEG, PNG, GIF, BMP and WebP. If your platform serves one master file and negotiates format at the CDN, let it; if you upload variants yourself, prefer WebP or AVIF with a fallback.

Two compression rules that protect quality and rankings at once:

  1. Compress to the display size, not to a file-size target. Over-compression produces the “blurry, unclear images” BigCommerce’s own image guide warns about — bad for conversion and bad for the image-result click.
  2. Keep the original. Repeated re-compression of already-compressed files is generational loss; every catalog re-crop should start from the master.

CSS background images don’t exist, as far as Google is concerned

Google’s image docs: “Google can find images in src attribute of <img> element… Google doesn’t index CSS images.” If a product shot is implemented as background-image, it is invisible to image search no matter how good the alt strategy is. The background-image trick is fine for decorative textures; it is a defect for product photography.

Lazy loading: defer the fold, not the crawler

Lazy loading is good for performance and dangerous in exactly one way: an image that only loads after a user action may never load for a crawler. Google’s lazy-loading documentation states the requirement plainly — “make sure that your lazy-loading implementation loads all relevant content whenever it is visible in the viewport” — and lists the acceptable mechanisms: browser built-in lazy-loading (loading="lazy" on images and iframes), the IntersectionObserver API, or a JS library that loads data on viewport entry. The common denominator: none of them “rely on user actions, such as scrolling or clicking” — “Google Search does not interact with your page.”

Two rules beyond the mechanism:

  • Don’t lazy-load what’s immediately visible. Google’s warning: doing so “might cause content to take longer to load and show up in the browser” — this is also the LCP trap, since the largest above-the-fold element is often a product image.
  • Verify the rendered HTML. Google’s test procedure: run URL Inspection and confirm the image URLs appear in the src attributes of <img> elements in the rendered HTML. If they only appear after interaction, the setup is broken for search.

What each platform does by default

  • WordPress / WooCommerce: since 5.5, core adds loading="lazy" to img tags that have width and height attributes present, applied on output alongside srcset and sizes. The official notes are worth reading for the caveats: only images with both dimension attributes get lazy-loaded (which is why core also back-fills width/height), and because indiscriminate lazy-loading hurt LCP, the 5.9 refinement excludes the first content image from lazy-loading by default. If your product page’s hero image is a template image rendered via wp_get_attachment_image(), check the attribute yourself.
  • Shopify: theme images pass through image_url/image_tag, which emit the dimensions and srcset; whether loading is applied is theme behavior — so audit the rendered output rather than assuming. Above-the-fold product media should render eagerly.
  • BigCommerce: Stencil themes handle image loading in theme code and image presets; again, the verification is the rendered page, not the control panel. Check the LCP element on a product page in Lighthouse or PageSpeed Insights.

If you use a JavaScript lazy-load library instead of the native attribute, it must still load images as they enter the viewport without user interaction — the older pattern of placeholder-plus-scroll-handler is the one that hides content from Google.

Help Google discover the images themselves

Three finishing layers from Google’s image guidance, cheap relative to their return:

  1. Image sitemaps. You can submit an image sitemap for URLs Google might not discover on its own. Notably, <image:loc> may point at other domains — so CDN-hosted product images are fine — and Google encourages verifying the CDN domain in Search Console so it can report crawl errors on it.
  2. Page context. Google “extracts information about the subject matter of the image from the content of the page, including captions and image titles” and recommends placing images near relevant text. A product photo next to its spec table beats a photo floating in a gallery-only tab.
  3. Preview-image metadata. If you care which image Google shows as the preview in Discover or a text result, specify primaryImageOfPage in structured data or an image attached to the mainEntity; for og:image, use an image that is “relevant and representative” — not a logo, not text-heavy, not an extreme aspect ratio — at the highest resolution you can. And for rich results generally, the image property is required for an image badge eligibility, per Google’s structured data rules.

Verification checklist

  1. Sample ten product images across the catalog: every <img> has product-specific alt text and a descriptive filename.
  2. View source on a product page: no product photography implemented as CSS background-image.
  3. Confirm rendered output has width/height (or srcset-producing markup) on product images — this is what prevents layout shift and what platforms key lazy-loading on.
  4. URL Inspection → rendered HTML: image src attributes are present without scrolling or clicking.
  5. PageSpeed Insights on a category page and a product page: identify the LCP element; if it’s a lazy-loaded image, make it eager.
  6. Spot-check that the CDN serves appropriately sized files (a 600px slot should not receive a 3000px master).

FAQ

What is the best alt text for a product image? A short description of what the image actually shows, with the distinguishing attribute: “Men’s waterproof hiking boot, brown leather”. Google’s own examples rank descriptive alt (“Dalmatian puppy playing fetch”) above generic (“puppy”) and far above keyword-stuffed lists, which it warns may be seen as spam.

Does alt text affect product rankings? Google uses alt text, computer vision and page content together to understand an image, and image relevance feeds image search and preview results. Alt text also serves accessibility. It is metadata quality, not a ranking knob — the stores that win image search are the ones that describe every image properly, not the ones that stuff keywords.

Should product images be lazy loaded? Below-the-fold images, yes; the main above-the-fold product image, no. Google requires lazy-loaded content to load when it enters the viewport without user interaction, and it warns against lazy-loading content that’s visible on load — that pattern delays your largest contentful paint and can hide the image from crawlers.

Which image format is best for an e-commerce store? Any format Google supports — BMP, GIF, JPEG, PNG, WebP, SVG, AVIF — served at the size the layout renders. WebP and AVIF give the best size-to-quality ratio today; Shopify’s CDN, for one, auto-selects the best supported format per client. Keep the filename extension matching the file type.

Do I need an image sitemap? If images matter to your traffic — and for product catalogs they do — an image sitemap helps Google discover CDN-hosted and hard-to-find images, and Google allows cross-domain <image:loc> values so CDN URLs are fine. It supplements, not replaces, crawlable <img> markup.

Why aren’t my product images showing in Google Images? The usual causes: the images are CSS background images (not indexed), missing or boilerplate alt text, images loading only on user interaction, or the page itself isn’t indexed. Check rendered HTML in URL Inspection first — it distinguishes “Google can’t see the image” from “Google sees it but doesn’t rank it”.

Conclusion

Product image SEO is three disciplines held together: alt text that describes what a shopper actually sees, compression and resizing that match the file to the slot, and lazy loading that defers work without hiding content — plus the small finishing layer of sitemaps and page context. None of it requires new tooling; it requires an upload workflow that treats every image as content with metadata, not as pixels.

If your catalog’s image layer needs more than a checklist — bulk alt text, delivery re-sizing, a Core Web Vitals pass — our technical SEO services cover exactly that, and the surrounding architecture is in our complete guide to e-commerce SEO and the technical e-commerce SEO guide.