Cloudflare Workers can now resize images without a custom domain
A new Worker-scoped config brings the /cdn-cgi/image/ transformation URL format to workers.dev subdomains, a workflow that previously needed a custom domain connected first.
Cloudflare’s Images service now works on workers.dev subdomains without a custom domain attached. As of 25 November, a new Worker-scoped setting lets a Worker serve the same /cdn-cgi/image/ transformation URLs that previously only worked once you’d connected a custom domain:
https://example-app.<YOUR_SUBDOMAIN>.workers.dev/cdn-cgi/image/format=auto,width=400/image.png
You turn it on in Wrangler or cloudflare.config.ts by setting images.url_transformations.enabled to true and listing up to 10 allowed_origins for the source images. The setting applies to both deployed Workers and local development, and it overrides any zone-scoped transformation settings already set on a custom domain. No IMAGES binding is required, and transformed images are cached automatically in production.
Why it matters: testing image transforms used to mean setting up a custom domain first. This removes that step, so you can prototype resizing and format conversion straight from a workers.dev deployment before deciding whether the project needs a domain at all.