Compress to the Perceptual Threshold
Reduce image weight until further compression would visibly harm quality
- Difficulty
- Starter
- Time to result
- ~days to results
- Steps
- 5
- Confidence
- 97%
This framework optimizes ecommerce imagery through two linked controls: dimensions and compression. First, compare the dimensions of the uploaded source with the size at which the browser actually displays it. If the source is substantially larger, resize it before uploading again so shoppers do not download unused pixels. Next, compress the resized image incrementally while inspecting its appearance. Continue reducing its weight until degradation first becomes noticeable, then retain the preceding acceptable version. This establishes a practical perceptual threshold rather than relying on an arbitrary quality setting. Tools such as TinyJPG can perform the compression, while browser extensions can expose mismatches between source and displayed dimensions. Repeating the process across major assets can cut image weight substantially and save hundreds of milliseconds or even seconds.
Origin
Extracted from Ecommerce Coffee Break during Adrien Levinger's recommendations for balancing visual quality with Shopify performance.
Core principles
- 01Performance requires trade-offs between content and speed
- 02Serve images near their actual display dimensions
- 03Compress assets until degradation becomes perceptible
- 04Preserve customer-visible quality while eliminating invisible weight
How to run it
- 1
Audit image dimensions
Compare each important uploaded image with the dimensions at which it is rendered in the browser.
Pro tip Begin with above-the-fold and high-traffic product images.
- 2
Resize oversized sources
Create a version close to the largest display size the storefront genuinely requires.
Pro tip Account for high-density displays without retaining unnecessarily huge originals.
Watch out Do not resize below the dimensions needed for the store's largest legitimate presentation.
- 3
Apply initial compression
Run the resized asset through an image-compression tool and inspect the result at realistic display sizes.
Pro tip TinyJPG is the free tool named in the episode.
- 4
Find the threshold
Compress progressively more until quality loss becomes noticeable. Use the lightest version that still appears acceptable.
Pro tip Inspect important details such as product texture, text, and edges.
Watch out Optimizing only for file size can undermine customer trust in product quality.
- 5
Replace and measure
Upload the optimized asset and compare page performance with the prior version.
Pro tip Record file-size reductions alongside page-level loading metrics.
In the wild
A collection card displays an image at a fraction of the uploaded source dimensions. The merchant resizes the source to a suitable maximum, compresses it with TinyJPG, and uploads the optimized version.
→ The browser downloads a significantly lighter asset without a visible decline in storefront quality.
A merchant exports several increasingly compressed versions of a product photograph. The final version shows visible artifacts, so the merchant selects the preceding version and replaces the original heavy image.
→ The store retains credible product detail while removing unnecessary file weight.
Common mistakes
Uploading original camera dimensions
Large sources waste bandwidth when the storefront displays only a much smaller rendition.
Stopping after one compression pass
A cautious first pass may leave significant invisible file weight that could still be removed.
Compressing beyond visible quality
Artifacts and blurred details can make products appear lower quality and weaken trust.
Is it for you?
Best for
Image-heavy Shopify stores whose pages load slowly because assets are oversized or insufficiently compressed.
Not ideal for
Stores whose main bottleneck is third-party code, server behavior, or application logic rather than media assets.
From the transcript
“try to compress them as much as you can while maintaining quality.”
“I, I compress a bit and then a bit more, and then a bit more until it's noticeable and that's where you stop.”
“if you notice that the image that you uploaded is a lot bigger than the size of the image that is being displayed, it means…”
From the episode
Why Shopify Brands Should Be Obsessed With User Experience
Adrien Levinge