w and h to define the output box. fit controls how the source fills that box; gravity, crop, or fp controls where the crop lands when using fit=cover.

Off-centre hero — gravity=center (left) vs gravity=smart (right).

Manual focal point — gravity=center (left) vs fp=x,y (right).

Source crop + 16:9 — ?rect=8%,12%,84%,76&w=1200&ar=16:9.

Wide banner — ?w=1200&ar=21:9&fit=cover.
Source crop and aspect ratio
Userect to crop the source before resize/gravity:
ar derives the other (w=1200&ar=16:9 → 675px tall).
Fit strategies

fit=cover

fit=contain

fit=fill

fit=inside

fit=outside
Smart cropping

Full-width source before any crop.

gravity=face portrait crop.

gravity=entropy texture crop.
/api/images/analyze, see Smart cropping & image analysis.
Focal zoom (fp-z)
fp-z (alias fpZ) zooms toward the focal point by shrinking the crop window before resize. Range 1–10; higher values tighten the crop.
fp=x,y from manual focal points or /api/images/analyze for art-directed thumbnails that stay centred on the subject at smaller sizes.
Device pixel ratio
dpr multiplies output pixels while preserving layout size in CSS. Render a 400px slot with w=400&dpr=2 to receive an 800px asset for Retina displays. Valid range: 1–4.
dpr vs srcset width descriptors
You do not need both
dpr=2 and 1200w in the same srcset entry — pick one model per image.