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.

Cloudflare Workers Edge cached AVIF output

Resized image
Processed images are cached for 1 year at Cloudflare's edge

Query parameter

Pass the image URL as a ?url= parameter.

https://imrs.madebydanny.uk?url=https://example.com/photo.jpg

Path passthrough

Append the full URL directly after the origin.

https://imrs.madebydanny.uk/https://example.com/photo.jpg

In an HTML image tag

Wrap any src to serve AVIF automatically to supporting browsers.

<img src="https://imrs.madebydanny.uk/?url=https://example.com/photo.jpg">
1

You pass an image URL

Either via ?url= or as a path suffix. The URL must be a publicly accessible image.

2

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.

3

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.

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.