Prompt
What should I use for responsive image delivery on an ecommerce site?
Latest observation
Nov 2, 2026
OpenAI APIWeb search: off
For an ecommerce site, the best responsive image delivery setup is usually:
Recommended approach
Use modern responsive images with:
srcset+sizesfor the browser to choose the right image size- Next-gen formats like AVIF and WebP
- An image CDN/service that can resize, compress, and transform images on demand
- Lazy loading for below-the-fold images
Why this is the best fit
Ecommerce sites usually have:
- lots of product images
- different image display sizes across mobile/desktop
- a need for fast page loads
- high visual quality requirements
Responsive delivery helps you avoid sending oversized images, which improves:
- Core Web Vitals
- mobile performance
- conversion rates
Best stack options
1. If you want the simplest robust setup
Use an image CDN such as:
- Cloudinary
- imgix
- Cloudflare Images
- Fastly Image Optimizer
- Akamai Image Manager
These can automatically:
- resize images
- serve WebP/AVIF when supported
- crop for product cards vs detail pages
- optimize quality
- cache globally
2. If you want full control in your frontend
Use plain HTML:
<img
src="product-800.jpg"
srcset="
product-400.jpg 400w,
product-800.jpg 800w,
product-1200.jpg 1200w
"
sizes="(max-width: 600px) 100vw, (max-width: 1200px) 50vw, 400px"
alt="Product name"
loading="lazy"
/>
3. If you use a framework
Framework image components are often a good choice:
- Next.js
<Image> - Nuxt Image
- Gatsby Image
- Remix with an image CDN
They typically handle responsive sizing and optimization for you.
Best practices for ecommerce
- Generate multiple sizes for each product image
- Use AVIF first, then WebP, then JPEG/PNG fallback
- Keep product thumbnails smaller than gallery/zoom images
- Use accurate
sizesvalues, not just100vw - Reserve space with width/height to prevent layout shift
- Lazy-load non-critical images
- Preload only the main hero/product image on product pages
- Serve appropriately cropped images for different layouts
Practical recommendation
If you’re starting fresh, I’d recommend:
Image CDN + srcset/sizes + AVIF/WebP + lazy loading
That gives the best balance of:
- speed
- quality
- maintainability
- scalability for ecommerce
If you want, I can also recommend a setup based on your stack, like Shopify, WooCommerce, Next.js, or a custom React app.