Do I purge image variants I don't use to load faster?
Muhammed Tüfekyapan
Founder & CEO
TL;DR - Quick Answer
Complete Expert Analysis
Do I Purge Image Variants I Don't Use to Load Faster?
Shopify automatically creates multiple size variants of every product image. Over time, themes change, code gets updated, and many of these variants are no longer referenced - but they still get requested by browsers that parse outdated HTML or JavaScript. Cleaning up unused variants reduces server load and response times.
Shopify Image Variants Generated
- - pico (16x16), icon (32x32), thumb (50x50)
- - small (100x100), compact (160x160)
- - medium (240x240), large (480x480)
- - grande (600x600), 1024x1024, 2048x2048
- - master (original, up to 5760px)
Optimization Actions
- - Audit Liquid templates for referenced image sizes
- - Use srcset to serve appropriate size per device
- - Replace fixed-size img src with responsive sizes attribute
- - Compress master images before upload (saves all variants)
- - Remove orphaned product images from removed products
Key Action: The biggest win is ensuring your theme uses responsive srcset instead of fixed-size image URLs. A theme requesting "grande" (600px) images on mobile when "medium" (240px) would suffice wastes 60%+ bandwidth per image request.
Use Shopify's image_url filter with width parameter (Shopify 2.0+) to request exactly the size you need dynamically, rather than relying on pre-generated variants. This is the most reliable way to ensure right-sized images.
Turn This Knowledge Into Real Revenue Growth
Growth Suite transforms your Shopify store with AI-powered conversion optimization. See results in minutes with intelligent behavior tracking and personalized offers.
+32% Conversion Rate
Average increase after 30 days
60-Second Setup
No coding or technical skills needed
14-Day Free Trial
No credit card required to start
With over a decade of experience in e-commerce optimization, Muhammed founded Growth Suite to help Shopify merchants maximize their conversion rates through intelligent behavior tracking and personalized offers. His expertise in growth strategies and conversion optimization has helped thousands of online stores increase their revenue.
Continue Learning
Discover more expert insights to accelerate your e-commerce growth
How do I write a Mother's Day cart abandonment recovery email?
A Shopify merchant wants to write effective cart abandonment recovery emails specifically tailored for Mother's Day g...
What is the best timing for a Mother's Day cart recovery email?
A Shopify merchant wants to optimize the timing of their Mother's Day cart abandonment recovery emails. They need to ...
Should I offer an extra discount in my Mother's Day recovery email?
A Shopify merchant is debating whether to include a discount code in their Mother's Day cart abandonment recovery ema...