Expert Answer • 2 min read

Do I purge image variants I don't use to load faster?

I'm running an e-commerce store with multiple product variants and I'm concerned about website performance. I've noticed my product images take a while to load, and I'm wondering if removing unused image variants could help improve my site's speed and user experience. I want to understand the technical implications, potential performance gains, and best practices for managing product images efficiently without compromising my store's visual appeal or functionality.
Muhammed Tüfekyapan

Muhammed Tüfekyapan

Founder & CEO

2 min

TL;DR - Quick Answer

Yes - Shopify generates many image variants (50x50, 100x100, 200x200, etc.) for every uploaded image. Auditing and removing unused size variants reduces storage and prevents unnecessary requests. Use Shopify's ImageTransform or a media audit app to clean up.

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.

New Strategy For Your Shopify Store

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

GDPR Compliant
24/7 Support
Cancel Anytime
Muhammed Tüfekyapan

Muhammed Tüfekyapan

Founder & CEO of Growth Suite

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.

E-commerce Expert Shopify Partner Growth Strategist

Continue Learning

Discover more expert insights to accelerate your e-commerce growth