Open source · Cloudflare Image Resizing

Cloudflare Image Url Generator

Offload image resizing and AVIF and WebP conversion to Cloudflare Image Resizing, and keep ImageSharp for anything Cloudflare cannot do. It works with Umbraco's own GetCropUrl, and with Slimsy for AVIF-first picture elements. It began inside Slimsy and became its own package in June 2023, after breaking changes in Umbraco 12.

Cloudflare Image Url Generator icon
June 2023
First released
Version 4
For Umbraco 17 and 18
AVIF and WebP
Offloaded to Cloudflare
MIT
Open-source licence

What does it do?

WebP and AVIF from Cloudflare

Image format conversion is offloaded to Cloudflare Image Resizing by default, so modern formats are generated at the edge.

A hybrid approach

Cloudflare handles format, size, quality, focal point and crops. ImageSharp keeps whatever Cloudflare cannot do, such as pad background colours.

Works with GetCropUrl

Register it once in your Umbraco builder and add a format to your crop URLs. Your existing cropping setup keeps working.

Signed URLs

Optional signed URLs, with long-lived, cache-friendly signatures or an expiry time.

Configurable

Choose which formats are offloaded, set your CDN and origin hosts, or turn it off in local development.

Custom worker support

A sample Cloudflare worker covers private origins and signature checks when you want more control than Image Resizing alone.

Recommended in Umbraco's own documentation

CloudflareImageUrlGenerator is the package Umbraco's image optimisation guide names for Cloudflare image delivery. It offloads AVIF and WebP conversion to Cloudflare Image Resizing, and the guide says it can be combined with Slimsy.

Need help?

Need help installing Cloudflare Image Url Generator to your Umbraco installation?

Tell us about your Umbraco site and we will reply within one working day.

Supported Umbraco versions
17 and 18 (version 4)
License
MIT