Free Image Hosting & Static CDN: Avoiding Broken Hosts with R2, B2 & jsDelivr

Keep blog images online for 10+ years at $0: compare jsDelivr open-source CDN, self-owned Cloudflare R2 / Backblaze B2 custom-domain buckets, and risky public image hosts.

Table of contents
  1. 1.Image & Static Asset Options Compared (2026)
  2. 2.Two Rules for Zero-Maintenance Blog Media
  3. 3.FAQ
Free Image Hosting & Static CDN: Avoiding Broken Hosts with R2, B2 & jsDelivr

Nothing rots a technical blog faster than dead image thumbnails after a “free image host” shuts down, enforces hotlink bans, or locks old uploads behind VIP paywalls. In 2026, use jsDelivr strictly for open-source code/npm assets and own your blog media via Cloudflare R2 or Backblaze B2 behind your own subdomain.

Image & Static Asset Options Compared (2026)

Solution Free Quota Longevity & Risk Recommendation
Cloudflare R2 / Backblaze B2 + Custom Domain 10 GB permanent free + $0 egress (via CF CDN) You own the domain URL & bucket; switching storage backends requires only a DNS CNAME edit #1 choice for all long-term blogs and docs
Repo-Bundled Assets on Cloudflare Pages Unlimited static bandwidth (25 MiB max/file, 20k files/deploy) Version-controlled right alongside Markdown; zero external dependencies Best for Astro/Hugo markdown blogs under ~1 GB
jsDelivr CDN (cdn.jsdelivr.net) Unmetered bandwidth & requests for npm & public GitHub repos Production-safe for npm/OSS; GitHub strictly bans abusing repos purely as media dumps Use for JS/CSS/icon packages, not large personal media libraries
Public Free Image Hosts (Imgur, SM.MS, etc.) Strict per-image size / daily upload / bandwidth throttles Regional blocks, strict Referer blocks, silent archival purging Only for throwaway forum posts; never in canonical docs

Two Rules for Zero-Maintenance Blog Media

  1. Convert Screenshots to WebP / AVIF Before Uploading: Compressing raw 2 MB PNG screenshots down to 80–150 KB WebP means 10 GB on R2/B2 stores roughly 70,000–120,000 crisp article images.
  2. Always Reference Your Own Subdomain: Use https://img.yourdomain.com/2026/diagram.webp rather than vendor buckets (*.r2.dev or raw GitHub links). Even if you migrate providers five years later, zero Markdown links ever break.

FAQ

Should I put article screenshots directly inside my Astro/Hugo Git repository on Cloudflare Pages?

If total site assets stay cleanly under ~1 GB and well below 20,000 files (like lightweight review or documentation portals), committing optimized WebP images inside your Git repo is simpler, atomic, and covered by Cloudflare Pages’ unlimited static bandwidth. Only offload to R2/B2 once media grows multi-gigabyte.

Why shouldn’t I use raw.githubusercontent.com directly as an image CDN?

GitHub rate-limits raw downloads, strips aggressive browser caching optimizations, and ISP throttling in several regions makes raw.githubusercontent.com unreliable for end readers.

Spotted outdated pricing, stock, or expired coupons?See methodology & report an update →

Related articles