Responsive Images and srcset Guide (2026)
srcset lets the browser choose the right image size; sizes tells it how wide the slot is. This guide covers the markup, the candidate widths and the mistakes that make responsive images slower, not faster.
AISellerKit Editorial Team Β· Reviewed by Commerce Strategy Team Β· Updated Jul 3, 2026

Production and review workflow
The three pieces
Responsive images use three pieces: `srcset` lists candidate image URLs and their intrinsic widths, `sizes` describes the rendered width at each breakpoint, and the browser picks the candidate that best fits the viewport and pixel density. If `sizes` is wrong, the browser downloads the wrong candidate even when `srcset` is correct.
Choosing candidate widths
Pick widths that match the layout's real breakpoints, plus a 2x candidate for high-density screens. A product gallery might use 400, 800, 1200 and 1600 pixels rather than ten near-identical sizes. The largest candidate should be sharp enough for zoom; the smallest should not be so small that the product is unrecognisable.
When to use picture
Use `<picture>` with `<source>` when the crop itself must change, not just the width. A square mobile crop and a landscape desktop crop are a picture use case; the same crop at different widths is a srcset use case. Do not use picture to swap formats only; modern formats can be negotiated by the CDN or by source type.
Formats and compression
Responsive delivery is not only about width. Serve modern formats where supported, compress at a quality that survives a second pass, and let the browser or CDN choose. A 1600px WebP can be smaller than a 1000px JPEG, so measure the actual bytes rather than assuming a larger pixel count is worse.
A responsive image QA checklist
Check the downloaded width, the currentSrc, the LCP element and the CLS score at mobile and desktop sizes. If the browser downloads a large candidate for a small slot, fix sizes. If the image is soft at zoom, increase the largest candidate. If the layout jumps, set the aspect ratio.
FAQ
What is the difference between srcset and sizes?
srcset lists candidate images and their widths; sizes tells the browser how wide the image will be rendered. Both are needed for the browser to choose correctly.
How many srcset candidates should I provide?
A small set that covers the real breakpoints, usually 3-5 widths plus a 2x candidate. More candidates do not automatically improve quality.
Does srcset help SEO?
It improves performance and user experience, which indirectly supports SEO. It is not a direct ranking factor.
Does srcset prevent layout shift?
Not by itself. You still need width and height attributes or an aspect-ratio container to reserve the space.
Do all browsers support srcset?
Modern browsers support srcset and sizes. Older browsers fall back to the src attribute, so keep a sensible default.
Official sources
- web.dev β responsive imagesChecked 2026-11-18
- Google Search Central β image best practicesChecked 2026-11-13
- Shopify Help β product mediaChecked 2026-11-13
Checked before publishing. Confirm the current requirements on the destination platform before a batch upload.
Related resources
Shopify Responsive Product Images Guide (2026)
How Shopify serves responsive product images, which widths to request, and how to prevent layout shift and soft images on product pages.
Amazon A+ Content Image Specs by Module (2026)
A module-by-module guide to Amazon A+ Content image roles, crops, text rules and the review checks that keep A+ modules from being rejected.
Baby and Kids Product Image Guide (2026)
How to photograph baby and children's products so age grading, safety features, materials and sizing are accurate across storefront and marketplace images.
Bag and Luggage Product Image Guide (2026)
How to photograph bags and luggage so capacity, dimensions, hardware, materials and carry-on compliance are clear across storefront and marketplace images.
Resource center
A central entry point for guides, examples, templates, industry pages, and channel hubs.
E-commerce video
Alongside product-image workflows, AISellerKit supports e-commerce video generation from a product start image and a short creative direction. It helps teams explore product motion for PDP heroes, short-form ads, and social previews, while keeping task history in the same account workspace. Teams must review every result for product accuracy and channel compliance before publishing.
Industry pages
Explore category-specific workflows for beauty, electronics, home, pet, and more.
Examples
Inspect public examples for detail pages, hero visuals, and marketplace sets.
Templates
Use reusable prompt and workflow templates for production tasks.