Tutorial2024-03-17

From 5MB to 50KB: Compressing Product Images for Shopify Without Losing Quality

Slow product pages kill conversions. Learn how to compress product images from massive originals to web-optimized files that load instantly on Shopify.

#image-compression#shopify#ecommerce#webp#performance

Your Shopify store has a conversion problem. And it's not your product descriptions.

I audited a client's store last month. Their product photos were averaging 4.7MB each. On mobile (which is 70% of their traffic), a product page took 12 seconds to load. Their bounce rate was 73%.

After compressing images to under 100KB each, load time dropped to 2.1 seconds. Bounce rate fell to 31%. Revenue increased 40% in 30 days.

Here's exactly how we did it.

The Image Size Problem in E-commerce

Product photos come from photographers or manufacturers. They send you:

  • RAW files converted to PNG: 15-50MB
  • High-res JPEG: 3-8MB
  • TIFF files: 20-100MB

Shopify recommends 2048x2048px product images. But nobody needs a 5MB file for a 400px product card.

The Compression Pipeline

Step 1: Resize to Maximum Needed Size

Shopify's largest product image display is 2048px. Most themes display at 800-1200px. Resize to 2048px max dimension.

Step 2: Convert to WebP

WebP is 25-35% smaller than JPEG at the same quality. Every modern browser supports it.

<picture>
  <source srcset="product.webp" type="image/webp">
  <img src="product.jpg" alt="Product Name" loading="lazy">
</picture>

Use a WebP Converter to batch-convert your product images.

Step 3: Optimize Quality Setting

Quality 80-85 is the sweet spot for product images. Below 70, you see artifacts. Above 90, file size explodes for no visible difference.

Step 4: Strip Metadata

EXIF data (camera model, GPS, timestamp) adds 20-100KB per image. Your customers don't need to know you shot the product photo with a Canon EOS R5 in Brooklyn.

Use an Image Compressor to strip metadata and optimize in one step.

Real Results: Before and After

Original After Compression Savings
4.7MB JPEG 87KB WebP 98.1%
3.2MB PNG 64KB WebP 98.0%
6.1MB JPEG 112KB WebP 98.2%
2.8MB JPEG 52KB WebP 98.1%

Shopify-Specific Tips

  1. Use Shopify's built-in image CDN — Append ?width=800 to any Shopify image URL for automatic resizing
  2. Lazy load below-fold images — Add loading="lazy" to all images not in the initial viewport
  3. Set explicit width/height — Prevents layout shift (CLS). Use aspect-ratio to calculate correct dimensions
  4. Serve responsive images — Shopify's img_url filter supports multiple sizes

The PDF Invoice Problem

Here's a bonus tip for cross-border sellers. Your PDF invoices and packing slips also need optimization before sending to customers or uploading to platforms.

A 10-page PDF from QuickBooks can be 8MB. Compress it with a PDF Compressor to under 500KB — perfect for email attachments and faster Shopify admin uploads.

Quick Checklist for Every Product Image

  • Resized to max 2048px
  • Converted to WebP (with JPEG fallback)
  • Quality 80-85
  • Metadata stripped
  • File size under 150KB
  • Lazy loading enabled
  • Width/height attributes set
  • Alt text with product keywords

Compress your product images instantly with our free Image Compressor — supports JPEG, PNG, WebP, and runs entirely in your browser.

🛠

Try It Yourself

Put what you've learned into practice with our free online tools.