Image Transformations

One URL.
Any image you need.

Resize, crop, reformat, and optimise images on-the-fly by appending simple query parameters to any Tuzzle delivery URL. No preprocessing pipeline. No extra API calls. Just the URL.

URL structure

The anatomy of a transform URL

delivery URL
https://cdn.tzzl.io/spaces/acme/portrait.jpg?w=800&h=600&f=webp&q=85&r=fill&g=face
wOutput width in pixels
hOutput height in pixels
fOutput format
Transform modes

Every mode explained

Resize ?r=...

scale

Proportional scale to fit width/height. Preserves aspect ratio.

fit

Fit within the bounding box, letterboxed if needed.

fill

Fill the box, cropping to maintain aspect ratio.

crop

Hard crop to exact dimensions.

thumb

Smart thumbnail optimised for face/object detection.

Gravity ?g=...

auto

Smart gravity. Tuzzle picks the most visually interesting region.

face

Center on a detected face. Falls back to auto if no face found.

faces

Frame to include all detected faces.

eyes

Zoom to eye level for portraits.

center

Crop from the center. Classic fallback.

north/south/east/west

Crop from a fixed compass direction.

Format ?f=...

webp

Lossy or lossless. Best for web. ~30% smaller than JPEG.

avif

AV1 Image Format. Best compression. ~50% smaller than JPEG.

jpeg

Universal compatibility. Best for photos.

png

Lossless. Best for graphics with transparency.

gif

Animated GIFs preserved. Convert video frames to GIF.

tiff

High-fidelity archival. For print and pro workflows.

Parameters

Full parameter reference

Param Type Description Example
wnumberOutput width in pixelsw=800
hnumberOutput height in pixelsh=600
fenumOutput format: jpeg | png | webp | avif | gif | tifff=webp
qnumberQuality 1–100 (lossy formats only)q=85
renumResize mode: scale | fit | fill | crop | thumbr=fill
genumGravity: auto | face | faces | eyes | center | north | south | east | westg=face