Images Sync for Cloudflare

Auto-sync WordPress images to Cloudflare Images and store ready-to-use CDN URLs in post meta.

Available on: WordPress.org GitHub
Project site →

Images Sync for Cloudflare uploads your WordPress images to Cloudflare Images and writes optimized delivery URLs straight back into post meta. WordPress stays the source of truth; Cloudflare handles the CDN and on-the-fly resizing. Perfect for headless setups, JAMstack sites, and classic themes that just want faster images without changing their workflow.

Features

  • Flexible mappings — route any image source (Featured Image, ACF fields, post meta) into Cloudflare Images and write the result where you want it
  • Preset system — reusable presets for OG images, thumbnails, heroes, squares — consistent URLs across the whole site
  • Preview Studio — visually test how images render with different presets before going live
  • Auto-sync — images sync on post save, or bulk-process existing content via Action Scheduler
  • Flexible Variants support — smart detection prevents broken URLs and 9429 errors
  • Headless-ready — URLs sit in post meta, ready for GraphQL or REST API consumption
  • WP-CLI supportwp cfimg sync for scripted workflows
  • Secure token storage — Cloudflare API token encrypted at rest with libsodium (AES-256 fallback)
  • No lock-in — original images stay in the WordPress Media Library

Why it exists

Headless frontends need stable, cacheable CDN URLs. Rather than rewriting image handling on the frontend, this plugin keeps WordPress as the editorial interface and lets Cloudflare Images handle delivery and optimization — no custom resolvers, no broken references.

Requirements

Cloudflare account with a Cloudflare Images subscription, plus an API token with Cloudflare Images: Edit permission.