Why images affect SEO and sales
On a product page, photos are almost always the heaviest part of the page and often the part that decides the purchase. They affect SEO in two ways. The first is speed: the main photo is frequently the largest element visible on load, so it determines Largest Contentful Paint, one of the Core Web Vitals. The second is discoverability: Google Images, Google Lens and Shopping listings show photos, and people click on a product they can see.
With a catalogue of hundreds of products, mistakes multiply: one wrong theme setting applies to every product page. The speed and crawling basics are in the guide to technical SEO and Core Web Vitals; here we focus on images.
Modern formats and compression
Google Search supports BMP, GIF, JPEG, PNG, WebP, SVG and AVIF. For product photos three formats matter:
- JPEG: works everywhere, keep it as your master file and fallback.
- WebP: usually lighter files at the same perceived quality, supported by current browsers.
- AVIF: often lighter still, but slower to generate.
Use PNG for graphics with transparency or text, not for photographs. On Shopify you do not need to convert anything: since 2022 the CDN delivers images as AVIF or WebP depending on what the browser supports. On WooCommerce, conversion is handled by an optimisation plugin or at CDN level.
How much to compress
Upload clean originals of around 2000 pixels on the long side and let the system generate smaller versions. A quality setting between 75 and 85 in JPEG or WebP usually shows no visible difference on a product page. Always check by eye for products with gradients or fine fabrics, where compression shows first.
Sizing and lazy loading
A very common mistake is serving a phone the same 2000-pixel photo the desktop gets. With srcset and sizes, or the picture element, the browser picks the right version for the screen. Google recommends always providing a fallback URL in the src attribute. Set width and height too; without them the page jumps while loading.
What not to lazy load
Lazy loading (loading="lazy") defers off-screen images and cuts downloaded bytes. Applied to the main photo, though, it delays it. An analysis published on web.dev of WordPress sites found worse LCP on pages that lazy loaded images visible straight away, and the improvement came back when above-the-fold images were loaded normally. The practical rule:
- main product photo and the first images on a category page: load normally;
- gallery thumbnails, related products, reviews with photos: lazy load.
Filenames and alt text
Google recommends short, descriptive filenames: black-leather-tote-bag.jpg says more than IMG_4512.jpg. On a multilingual site, filenames should be translated. Renaming images after upload on Shopify is not straightforward, so do it beforehand in your working folder.
How to write alt text
Alt text serves screen reader users and helps Google understand the image. Google calls it the most important image metadata attribute and advises against filling it with keywords. For a product this structure works: object, distinguishing feature, view.
- Weak: "bag".
- Overdone: "leather bag women's bag tote bag black bag sale".
- Useful: "Black leather tote bag, side view with outer pocket".
Decorative images, such as a background or a repeated icon, can have empty alt text. In Shopify you add alt text from the product page by clicking the image; in WooCommerce, from the Media Library. For large catalogues, export a CSV, fill it in a spreadsheet and re-import. The main photo is also the first item on the product page checklist.
Image sitemaps and structured data
Google finds images in the src attribute of img elements, including inside picture. It does not index images set as CSS backgrounds. If your theme shows product photos with background-image, those photos do not exist for Google.
An image sitemap helps Google discover images it might miss, for example ones loaded with JavaScript. Each url can contain up to 1,000 image:image entries with their image:loc, even on a different domain such as a CDN. Google has removed image:caption and image:title from its documentation, so there is no need to fill them in.
In Product structured data, the image property should hold real product photos, not your logo. Shopify and the main WooCommerce SEO plugins already do this: check with the Rich Results Test that the image URL is correct.
Google Images, Lens and Shopping
People also search for products by photographing them with Google Lens or browsing Google Images. The photos that work best are sharp, show the whole product on a clean background and sit next to page text that describes the same product.
Google Shopping listings have stricter rules. Merchant Center's guidance bans promotional elements on the main photo (price, shipping, calls to action), watermarks, added logos, borders and placeholder images, and recommends images of around 1,500 x 1,500 pixels or more. If you use the same photo for site and feed, prepare it clean from the start.
Catalogue checklist
- Product photos are in the
imgelement, not CSS backgrounds. - The theme generates
srcsetand sets width and height. - The main photo has no
loading="lazy"; the others do. - Images are served as WebP or AVIF, with a JPEG fallback.
- Descriptive filenames, translated for each language version.
- Alt text on every product photo, without keyword lists.
- A sitemap with images, and the CDN verified in Search Console if used.
Productstructured data with real photos.- Shopping photos without text, watermarks or borders.
For the Shopify-specific side, covering themes, apps and templates, see the Shopify technical SEO guide. If you want us to fix your store's theme, images and structured data, start with our Shopify ecommerce setup service.
- seo immagini
- testo alternativo
- webp
- avif
- google immagini
- lazy loading
- core web vitals
- schede prodotto
Frequently asked questions
Is WebP or AVIF better for an online store?
Google Search supports both. AVIF often compresses more, while WebP is faster to generate and very widely used. On Shopify the CDN picks the format based on the browser; on WooCommerce you can generate WebP with a plugin and keep JPEG as a fallback.
Should alt text include the keyword?
Only if it genuinely describes the image. Google recommends useful, relevant alt text written for people and advises against stuffing it with keywords. On a product page, name, colour and view of the item are usually enough.
Do I need a separate image sitemap?
It is not required. You can add image:image tags to your existing sitemap. It mainly helps when images are loaded with JavaScript or sit on a CDN that Google might not discover from your pages.
Why don't my photos appear in Google Images?
Typical causes are images loaded as CSS backgrounds, files blocked by robots.txt, product pages that are not indexed, or image URLs that change every time the theme updates. Check first that the product page itself is indexed.
Sources
- Google image SEO best practices — Google Search Central
- Image sitemaps — Google Search Central
- The performance effects of too much lazy loading — web.dev
- Image link [image_link] — Google Merchant Center Help
- Automatic image optimization in AVIF — Shopify Changelog
Related articles
Technical SEO · 11 min read
Technical SEO 2025: Core Web Vitals, crawlability and structured data
Google evaluates your page in milliseconds. Technical guide to Core Web Vitals, crawlability and structured data to dominate the SERP.
E-commerce · 6 min read
A product page that converts: a 20-point ecommerce checklist
A 20-point checklist to audit an ecommerce product page: above the fold, images, price and variants, shipping and returns, reviews, description and mobile.
Technical SEO · 6 min read
WooCommerce technical SEO: a guide for stores that want to grow on Google
WooCommerce technical SEO in practice: permalinks, archives to exclude, filters and pagination, SEO plugin setup, caching, images and product structured data.
