Shopify Image File Size and Speed: What to Do Without an App
You usually do not need an image compression app on Shopify. Shopify's help center says you don't need to compress images before uploading, and that it serves each image in a format chosen for the shopper's browser, such as WebP or sometimes AVIF. What you can control is the size of the photo you start with, which images load first, and whether your theme asks for appropriately sized versions. Those three things cover most image-related slowness.
What Shopify already handles
- Format. Shopify's image service picks a format the visitor's browser supports, so you do not need to hand-convert photos to WebP.
- Multiple sizes. Shopify creates different sizes of an image for different parts of the theme, such as a larger one for the product page and a smaller one for collection pages.
- Upload limits. Shopify's help center lists a maximum file size and a maximum pixel count for images. The pages do not fully agree on the pixel figure, so check the current product image page if an upload is rejected. A "too large" error on a small file usually means too many pixels, not too many megabytes.
Step 1: Start with sensible originals
Shopify does not compress files when you upload them, so a huge original stays huge in your admin, and the original is what every smaller version is made from. Giving it a reasonable starting point helps.
- Export photos from your editing tool at a size that fits how they will be shown. For square product images, Shopify's help center says 2048 x 2048 px usually displays best.
- Avoid uploading far more pixels than any page will show. Larger originals mean slower processing and no visible gain.
- Keep every product image in the same aspect ratio so the theme does not crop or reshuffle them.
- Upload in Products, open the product, and use the Media section. Then add descriptive text as covered in how to add alt text to Shopify product images.
Step 2: Do not lazy-load the main image
Lazy loading delays images until a shopper scrolls near them. It helps for photos far down the page and hurts for the big image visible when the page opens, which is usually what Google measures as Largest Contentful Paint (LCP). Shopify's theme performance documentation says to load images visible in the first screen eagerly and never apply lazy loading to the main LCP image. It also recommends adding fetchpriority="high" to that image.
Shopify's image_tag filter already loads images in the first three sections eagerly and later ones lazily, so a current theme usually gets this right. Problems appear when a theme or an app swaps in its own lazy-loading script. If your hero or first product photo appears late, ask whoever maintains your theme to check that image.
Step 3: Check that the theme serves right-sized images
This is theme code, so it is a job for a developer or for a theme update, not something to edit casually. Shopify's documentation recommends that themes use image_url with image_tag and pass a short list of widths plus a sizes value that matches the layout. It describes four to six widths as usually enough. Without those attributes, a phone can be sent a desktop-sized image.
If you buy or customize themes, this is a fair question to ask: does it output srcset and sizes for product and collection images? If you must edit code, work on a copy of the theme and not the live one.
Step 4: Measure before and after
- Run your homepage, a collection page and a product page through PageSpeed Insights. Test the pages separately, since problems differ.
- Look at which element is reported as the LCP and whether it is an image.
- Read any image-related opportunities in the report. They name the specific files that are oversized or loaded late.
- Fix the worst ones first, then retest. Scores vary from run to run, so compare a few runs and not one.
When an app might help
If your catalog already holds thousands of very large originals and you want them replaced in bulk, a compression app can save time. For most stores the steps above are enough, and every installed app can add its own scripts, so weigh it against the cost described in Shopify app bloat.
Where this fits in your catalog SEO
Image weight is one factor. Missing alt text, empty descriptions and duplicate titles also affect how your products show up in search. The free catalog audit checks those across your catalog and links each issue to a fix guide.
Check your own store in 20 seconds
The free Catalog Audit for Shopify stores scans up to 1,000 products for empty or thin descriptions, duplicate titles, missing alt text and more, then links each issue to a fix.
Prefer to hand it off? I'm Evan, a software engineer who works on Shopify stores. Leave your email and store URL and I'll reply with a short, prioritized fix list. Free, no obligation.