Shopify Responsive Product Images Guide (2026)
Shopify's CDN can deliver the right image size, but the theme has to ask for it. This guide covers srcset, image_url widths, layout shift and the checks that keep a product gallery sharp on every screen.
AISellerKit Editorial Team Β· Reviewed by Commerce Strategy Team Β· Updated Jul 3, 2026

Production and review workflow
Why responsive images matter
A single large product image wastes bandwidth on phones and can delay the largest contentful paint. A single small image looks soft on high-density screens. Responsive images solve both by letting the browser choose from a set of widths based on the viewport and pixel density.
How Shopify's image_url works
Shopify's `image_url` filter accepts a width and produces a CDN URL at that size. Themes use it to build `srcset` candidates. Request the widths the layout actually renders, plus a 2x candidate for high-density screens. Do not generate a dozen near-identical widths; pick a small set that covers the breakpoints.
Sizes, breakpoints and art direction
The `sizes` attribute tells the browser how wide the image will be at each breakpoint. If it is wrong, the browser downloads the wrong candidate. For a product gallery that changes from a full-width mobile image to a two-column desktop layout, describe both. Art direction with `<picture>` is only needed when the crop itself must change, not just the width.
Prevent layout shift
Reserve the image's aspect ratio with width and height attributes or a CSS aspect-ratio box. A product gallery that jumps as images load hurts CLS and makes the page feel unstable. Set the ratio on the container, not only on the image, and keep it consistent across variants.
A responsive image QA checklist
Test the product page on a phone, a laptop and a high-density display. Check the downloaded image width in DevTools, the LCP element, the CLS score and the zoom quality. If the browser downloads a 2048px image for a 300px thumbnail, the sizes attribute is wrong; if the zoom looks soft, the largest candidate is too small.
FAQ
Does Shopify resize images automatically?
Shopify's CDN can serve resized variants, but the theme must request them with image_url and srcset. Uploading one large image and hoping the theme handles it is not enough.
Which widths should I generate?
Use the widths your layout renders at each breakpoint, plus a 2x candidate. A small set of 3-5 widths is usually enough for a product gallery.
How do I prevent layout shift from product images?
Set width and height attributes or an aspect-ratio container, and keep the ratio consistent across gallery images and variants.
Do I need a Shopify app for responsive images?
Most modern themes already use image_url and srcset. Check the theme before adding an app; an app can add weight without improving the underlying markup.
How do I test responsive images?
Use DevTools to inspect the currentSrc, the downloaded width and the LCP element at mobile and desktop sizes. Then check CLS in the field data after launch.
Official sources
- web.dev β responsive imagesChecked 2026-11-18
- Shopify β image_url Liquid filterChecked 2026-11-18
- Shopify Help β product mediaChecked 2026-11-13
Checked before publishing. Confirm the current requirements on the destination platform before a batch upload.
Related resources
Responsive Images and srcset Guide (2026)
How srcset, sizes and the picture element work, when to use each, and the checks that keep product images sharp without over-downloading.
Shopify Image CDN and Compression Guide (2026)
How Shopify's image CDN delivers product images, what the theme controls, and the compression and cache checks that keep images sharp without bloating the page.
Shopify Product Image SEO Guide (2026)
How Shopify product images are indexed, what alt text and file names actually do, and the schema and sitemap checks that improve image search visibility.
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.
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.