What an image CDN actually does

An image CDN is a service that transforms image URLs at runtime: from a source /photo.jpg, the optimally compressed format is served depending on browser, viewport, and pixel density — AVIF for Chrome 120, WebP for Safari 13, JPG for the now-rare legacy clients. Size, crop, sharpening, and watermark can be added on the fly, without the asset pipeline generating new variants.

The question is no longer whether, but how. Three routes: platform-integrated (Vercel, Netlify), specialized SaaS (Cloudinary, Imgix, ImageKit), or self-built (Sharp + Cloudflare Workers / AWS Lambda / Bunny Optimizer).

Vercel Image Optimization (platform-integrated)

If you're on Vercel or Next.js, you get the integrated next/image system practically for free. The component automatically delivers AVIF/WebP/JPG per browser, generates srcset variants, inserts a blur placeholder, and works with fetchpriority="high" for LCP images.

Costs 2026. 1,000 image optimizations per month free on the Hobby plan, 5,000 included on Pro, then $5 per additional 1,000. For medium sites (~50,000 optimizations/month) about $225/month — cheap compared to specialized services, as long as you host on Vercel.

Strengths: zero-config, perfectly integrated with the picture element, automatic Cache-Control headers, no vendor lock-in on the source images. Weaknesses: only basic transformations (no AI crops, no background removal), tied to Vercel hosting.

Cloudinary (SaaS market leader)

Cloudinary has been the market leader since 2012. It offers everything: format conversion, AI crops, background removal, watermarks, video optimization. The URL API is powerful: https://res.cloudinary.com/demo/image/upload/w_400,q_auto,f_auto/sample.jpg.

Costs 2026.Free tier 25 credits/month (≈ 25 GB storage + 25 GB bandwidth + 25K transformations). Plus plan from $99/month. From 100 GB bandwidth quickly > $500/month — the scaling can get brutal.

Strengths: the most extensive feature list, mature SDKs for every framework, good documentation, ML-based crops and auto-quality. Weaknesses: price scaling, lock-in via the URL API (migration costs), proprietary auto-modes make caching hit rates opaque.

300 × 250 — Rectangle
Cookie-Banner ausstehend

Imgix (performance specialist)

Imgix is Cloudinary's main competitor and, since 2009, specialized in maximum performance. Unlike Cloudinary, Imgix doesn't store images itself — you connect an existing S3, GCS, or another origin source, and Imgix optimizes only the delivery path.

Costs 2026. Standard from $30/month for 1,000 origin images + 100 GB bandwidth. Scales more predictably than Cloudinary, because the pricing structure contains less "magic".

Strengths: bring-your-own-storage, low latency thanks to a global CDN (Fastly backbone), clear pricing. Weaknesses: fewer out-of-the-box features than Cloudinary, no AI crop.

Bunny CDN Optimizer (budget option)

Bunny CDN has offered an image optimizer since 2023 as an add-on to regular CDN delivery. The trick: no separate image-CDN subscription, but a surcharge of ~5% on the regular CDN costs.

Costs 2026. Bunny CDN itself costs $0.01/GB in Europe and North America, the image optimizer $9.50/month flat plus bandwidth. For a site with 500 GB of monthly bandwidth you land at about $15/month — an order of magnitude below Cloudinary.

Strengths: by far the cheapest price, good performance. Weaknesses: few features (essentially resize + format + quality), no ML features, a smaller community.

Self-hosted: Sharp + Cloudflare Workers

If you're technically savvy and want to avoid lock-in, you can build an image-CDN pipeline yourself. Standard stack 2026: Sharp (libvips-based) as the encoder, Cloudflare Workers / R2 as edge storage, a URL-signing layer against hotlinking.

Costs 2026. Cloudflare Workers cost $5/month per 10M requests, R2 storage $0.015/GB, bandwidth free. For 50,000 optimizations/month plus 500 GB bandwidth: ~$10/month. The pipeline itself costs a one-off 1–2 days of development time.

Strengths: lowest cost at scale, full control, no lock-in. Weaknesses: you run the pipeline yourself — monitoring, cache invalidation, AVIF encoder updates are your job. Sharp's AVIF encoder is markedly slower than Cloudinary's specialized infrastructure; on large images an edge worker can hit timeout limits.

300 × 250 — Rectangle
Cookie-Banner ausstehend

Decision matrix

  • You use Next.js on Vercel: take next/image. No better ratio of effort to effect.
  • You need AI features (smart crop, background removal): Cloudinary. Only there available in production quality.
  • You have existing S3/GCS buckets and maximum performance is mandatory: Imgix.
  • You're price-sensitive and only need format conversion + resize: Bunny CDN Optimizer.
  • You want no vendor lock-in: self-hosted Sharp + Cloudflare Workers.
  • You have little traffic and only need to cover a small site: build-time optimization with our tools (JPG to WebP, compress JPG) plus static hosting is enough.

Watch the hidden costs

Three items are often underestimated in calculations. First: origin bandwidth. The CDN fetches images from the origin (S3, your own server), and depending on the cache hit rate that can amount to 5–20% of the delivery bandwidth. Second: cache invalidation. On logo updates or price-banner changes, you have to delete all derived variants — the few CDNs that offer this for free make it painfully slow. Third: egress fees when leaving a cloud provider. If your origin is in AWS and the CDN at Cloudinary, you pay AWS egress, which at 1 TB of monthly traffic quickly costs $90.

Recommendation 2026

For 80% of all projects: platform-integrated (Vercel) or cheap (Bunny). For e-commerce sites with a large photo catalog and ML requirements: Cloudinary. For high-performance use cases with existing infrastructure: Imgix. Self-hosting is the right choice when you reach very large scales (TB range monthly) or have specific compliance requirements. An image strategy without a CDN — even if the site is small — gives away measurable Core Web Vitals points in 2026 (see our CWV post).

300 × 250 — Rectangle
Cookie-Banner ausstehend

Sources

Vercel Image Optimization · Cloudinary Pricing · Imgix Pricing · Bunny CDN Optimizer · sharp.pixelplumbing.com · Cloudflare Workers · web.dev — Image CDNs.