madebydanny.uk
IMRS
Image media reduction system, easily transform images built on Cloudflare Workers. Pass any public image URL and get it back converted to AVIF — smaller, faster, cached at the edge.
try it
usage
Query parameter
Pass the image URL as a ?url= parameter.
Path passthrough
Append the full URL directly after the origin.
In an HTML image tag
Wrap any src to serve AVIF automatically to supporting browsers.
how it works
You pass an image URL
Either via ?url= or as a path suffix. The URL must be a publicly accessible image.
The Worker fetches and transforms it
Cloudflare's image processing pipeline converts the image to AVIF at 85% quality, scaled down to fit its original dimensions.
You get a cached AVIF back
The response is served with Cache-Control: immutable, max-age=31536000 — one year at the edge. Subsequent requests for the same URL are instant.
response
Content-Type
image/avif — regardless of source format.
Cache-Control
Public, immutable, 1-year TTL. Served from edge on repeat requests.
CORS
Access-Control-Allow-Origin: * — safe to use from any origin.
Quality
85% AVIF quality. Typically 50–70% smaller than an equivalent JPEG.