Image transforms
Serve the right image for every screen without pre-generating variants. Ask for a size and format in the URL and the CDN produces and caches it.
How it works
For buckets with image optimization enabled, prefix the object path with transform options. The CDN resizes, reformats and re-compresses on the first request and caches the result:
https://cdn.orzn.space/cdn-cgi/image/width=640,format=auto,quality=80/<org>/<bucket>/photo.jpgOptions
- width, height — target dimensions in pixels.
- format —
auto,avif,webp,jpegorpng;autoserves the best format the browser supports. - quality — 1–100 compression quality.
- fit — how to fit the box:
scale-down,contain,cover,croporpad.
Cached at the edgeEach unique combination of options is generated once and cached, so repeated requests for the same variant are fast.