Site AI Auditpor Internet Solutions

Image CDNs Explained: Automatic Resizing and Modern Formats

1 de outubro de 20268 min de leituraVelocidade do site
Image CDNs Explained: Automatic Resizing and Modern Formats

Short answer: An image CDN is a service that stores your original images and delivers optimised versions on request: resized to the width the page needs, compressed, and converted to modern formats such as WebP or AVIF when the visitor’s browser supports them. The versions are cached on servers close to visitors. It is most useful for sites with many images, frequent uploads or editors who upload large photos, and less necessary for small sites that already optimise images well at upload.

What problem an image CDN solves

Images are usually the heaviest part of a web page. Serving them well means doing several things at once:

Doing all of that by hand, for every image, on every page, is a lot of work. Editors upload 5 MB photos straight from a phone, themes display them in a dozen different sizes, and a new format arrives every few years. An image CDN moves that work from people and build processes to a service that does it automatically.

For the basics of image optimisation, see our practical guide to image optimisation.

How an image CDN works

The typical flow looks like this:

  1. You keep one high-quality original of each image, either on your own server or uploaded to the service.
  2. Pages request images through the CDN with instructions in the URL, for example a width of 800 pixels and automatic format.
  3. The CDN checks the browser’s Accept header, which tells it whether the browser supports AVIF or WebP.
  4. On the first request, the CDN creates the version: resizes, compresses, converts and stores it.
  5. Later requests get the cached version from the nearest edge server, usually very quickly.

Because one URL can return different formats to different browsers, the service must send a Vary: Accept header or use format-specific URLs, so browser and intermediate caches do not mix them up. Good image CDNs handle this for you.

Combined with responsive image markup, the browser picks the right width from a list and the CDN produces exactly that size. The markup side is explained in responsive images with srcset and sizes.

Benefits

Costs and drawbacks

Image CDNs are not free of trade-offs:

Image CDN, general CDN or plugin?

OptionWhat it does with imagesBest for
General CDN onlyCaches and delivers existing files, no resizing or conversion unless added as a featureSites that already produce well-optimised images
Image CDN or CDN image featureResizes, compresses and converts on request, then cachesImage-heavy sites, shops, publishers, sites with many editors
Optimisation plugin on your serverCompresses and converts at upload, stores extra copies locallySmall to medium sites that want no external service
Build-time processingGenerates all sizes and formats during deploymentDeveloper-managed static or headless sites
Self-hosted image serverTransforms on request on your own infrastructureTeams with operations skills and large volumes

For a small business site with a few dozen images, an optimisation plugin or careful export is often enough. For an online shop with thousands of product photos, an image CDN usually pays for itself in saved time and faster pages. If you are unsure whether you need a CDN at all, read do you need a CDN first.

Setting one up without surprises

  1. Measure first. Note page weight and Largest Contentful Paint for a few key templates, so you can prove the benefit afterwards.
  2. Use your own subdomain for image URLs if the service supports it.
  3. Keep originals safe. The CDN is a delivery layer; your originals should remain in your own storage and backups.
  4. Configure sensible defaults: automatic format, automatic quality, a maximum width, and no upscaling beyond the original size.
  5. Update markup. Use srcset and sizes so the browser can request the right width, and keep width and height attributes to prevent layout shift.
  6. Treat the hero image specially. Add a preconnect to the image host, avoid lazy loading it, and consider high fetch priority.
  7. Check caching headers. Transformed images should have long cache lifetimes; see browser caching and Cache-Control.
  8. Test on real devices and compare the measurements from step 1.

Common mistakes

SEO considerations

How Site AI Audit helps

Site AI Audit reports page weight, compression, server response time and Google PageSpeed data for mobile, including Largest Contentful Paint and Cumulative Layout Shift. It also checks image alt texts as part of the SEO crawl. That makes it easy to see whether images are a real bottleneck before investing in an image CDN, and whether the change helped afterwards. Plans with re-checks are listed on the pricing page.

Related reading

The bottom line

An image CDN turns one original image into the right size and format for every visitor automatically and serves it from nearby servers. It is most valuable for image-heavy sites and teams without time to optimise each upload. Check the pricing model, use your own subdomain, handle the hero image carefully and measure before and after.

FAQ

What is an image CDN?

It is a content delivery service that resizes, compresses and converts images on request, then caches the results on servers near visitors. Pages request the size and format they need through the image URL.

Is an image CDN better than an image optimisation plugin?

For image-heavy sites, usually yes, because it creates any size on demand and offloads traffic. For small sites, a plugin that optimises images at upload is often enough and avoids an external service.

Does an image CDN help Core Web Vitals?

It can improve Largest Contentful Paint by delivering smaller images faster. It does not fix layout shift by itself, so keep width and height attributes on images.

Will images on a CDN domain hurt SEO?

No. Search engines index images from CDN hosts normally, as long as they are not blocked in robots.txt and are referenced in your pages with good alt text.

How do image CDNs decide between WebP and AVIF?

They read the Accept header sent by the browser, which lists the image formats it supports, and return the most efficient supported format, falling back to JPEG or PNG.

#Core Web Vitals#Image optimization#Page speed
Verifique seu próprio site — grátis.O que corrigir no seu site — e por onde começar.
Comece grátis
Internet Solutions

Mais da nossa equipe

Feitas pela Internet Solutions. Experimente nossos outros produtos — cada um economiza seu tempo de um jeito diferente.

internet-solutions.net ↗
Site AI Audit
Visão geral de privacidade

Este site usa cookies para oferecer a melhor experiência de usuário possível. As informações dos cookies ficam armazenadas no seu navegador e servem para, por exemplo, reconhecer você quando volta ao nosso site e ajudar nossa equipe a entender quais seções do site você acha mais interessantes e úteis.