WebP and AVIF from Cloudflare
Image format conversion is offloaded to Cloudflare Image Resizing by default, so modern formats are generated at the edge.
Open source · Cloudflare Image Resizing
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.
Image format conversion is offloaded to Cloudflare Image Resizing by default, so modern formats are generated at the edge.
Cloudflare handles format, size, quality, focal point and crops. ImageSharp keeps whatever Cloudflare cannot do, such as pad background colours.
Register it once in your Umbraco builder and add a format to your crop URLs. Your existing cropping setup keeps working.
Optional signed URLs, with long-lived, cache-friendly signatures or an expiry time.
Choose which formats are offloaded, set your CDN and origin hosts, or turn it off in local development.
A sample Cloudflare worker covers private origins and signature checks when you want more control than Image Resizing alone.
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?
Tell us about your Umbraco site and we will reply within one working day.