Lorixen.
EN

Image CDNs for a small online store: do you need one?

Short answer: An image CDN resizes, converts and compresses images on the fly from parameters in the image URL, then serves them from fast edge servers. If you're on a hosted platform like Shopify, you likely already have one built in, so the job is to use it properly. If you run your own site with lots of product photos and images uploaded by many people, a dedicated image CDN can save a lot of manual work. For a small site with a few dozen images, careful export and your CMS's built-in resizing are usually enough.

Slow product pages are often slow because of images: big photos straight off a camera, the same 3000-pixel file served to a phone and a desktop, old formats. "Use an image CDN" is common advice. Whether it's the right move depends on what you already have. This comparison looks at three approaches and ends with a verdict for different kinds of store.

What an image CDN actually does

Google's web.dev guide describes image CDNs as services that specialise in transforming, optimising and delivering images, a bit like an API for your site's images. The image URL says not only which image to load but also parameters like size, format and quality, so you can create variations for different uses.

Key points from that guide:

  • Transformations on demand. Unlike build-time scripts, image CDNs create new versions as they're needed, which suits images customised for each device.
  • The important transformations for performance are size, pixel density, format and compression.
  • They can fetch from where your images already live, often by including the original image URL in the CDN URL, so you don't necessarily have to move your files.
  • Custom domains can make it easier to switch providers later, because URLs don't change; some providers charge for this.
  • Security keys can stop other people generating unlimited new versions of your images by editing URL parameters.

Option A: Your platform's built-in image handling

Many hosted platforms already include image resizing and a CDN. Shopify's Liquid documentation, for example, describes an image_url filter that returns the CDN URL for an image (product, variant, collection, article and others), and requires a width or height parameter. That means a Shopify theme can request each image at the size it needs.

Strengths: no extra service, no extra bill, already integrated.

Weaknesses: only as good as your theme's use of it. A theme that requests huge widths everywhere, or skips responsive sizes, wastes the capability.

What to check: inspect a product image on a phone-sized screen. Is it being served at roughly the displayed width, in a modern format?

Option B: Build-time or upload-time optimisation

Your CMS, a plugin or a build script creates a set of sizes when images are uploaded or the site is built. WordPress, for example, generates several image sizes on upload, and themes use them in responsive image markup.

Strengths: simple, predictable, no per-request service.

Weaknesses: sizes are fixed in advance; adding a new layout means regenerating images; format conversion may need a plugin; heavy libraries make regeneration slow.

Option C: A dedicated image CDN

A third-party service sits in front of your images and transforms them by URL.

Strengths: any size or format on demand, automatic format selection, global delivery, and less manual work for large or frequently changing catalogues. Web.dev notes that image CDNs can often optimise better than build-time scripts.

Weaknesses: another vendor and bill; pricing usually depends on transformations, bandwidth or images stored; setup touches your theme or templates; a custom domain may cost extra.

Side-by-side

Built-in platform CDN Build-time sizes Dedicated image CDN
Effort to start Low (if theme uses it) Low to medium Medium
Flexible sizes Usually yes Fixed set Yes
Modern formats Often Depends on plugins Usually automatic
Extra cost None None or plugin Ongoing
Best for Hosted shops Small, stable sites Large or fast-changing catalogues

Confirm details with your platform and any provider; features and pricing change.

Verdict by store type

  • Shopify or similar hosted shop: you already have an image CDN. Make sure your theme requests sensible widths, uses responsive images and doesn't load full-size images in grids. A third-party CDN rarely adds enough to justify itself.
  • Small WordPress or custom site, under a hundred images, rarely changing: export images at sensible sizes, rely on built-in resizing and a modern format plugin if needed. An image CDN is optional.
  • Larger self-hosted shop with thousands of product images, frequent uploads or marketplace sellers: a dedicated image CDN is worth evaluating. On-demand sizes and formats save developer time and keep pages lighter.
  • Sites where users upload photos: consider a CDN or a processing step on upload, because you can't control what people upload.

Before you pay for anything

  1. Run a page-speed test on a product page and look at image-related suggestions.
  2. Check the sizes of images actually delivered to a phone.
  3. Fix the obvious: oversized originals, missing responsive markup, images loaded before they're needed.
  4. Re-test. If images are still the main issue and your catalogue is large, then trial an image CDN on a copy of the site.

A note on switching later

Whichever option you choose, keep your original high-resolution images somewhere safe and avoid hard-coding transformed URLs into page content. If image URLs are generated by your theme or templates, changing approach later is a template change rather than a hunt through hundreds of pages.

FAQ

Is an image CDN the same as a normal CDN?

No. A normal CDN delivers files as they are; an image CDN also transforms them by size, format and compression.

Will an image CDN fix a slow site on its own?

Only the image part. Scripts, fonts and server response time matter too.

Do I need to move my images to use one?

Often not. Many image CDNs can fetch images from their current location.

Can people abuse my image CDN URLs?

Security keys, offered by some providers, prevent others from generating unlimited variations.

If product images are dragging your store down, send us a product page link and we'll check whether your current setup or an image CDN is the better fix.

Sources

WhatsAppLet’s talk