Aspect Ratio
ar
Specifies the output aspect ratio instead of pinning both pixel dimensions. Written as W:H (e.g. 4:5). Also accepts WxH, W,H, or a bare decimal ratio (e.g. 1.85 → 1.85:1).
ar works with fit=crop, fit=fill, and fit=smart-crop. It is ignored for scale, clip, and max.
How the missing dimension is resolved depends on what else you specify:
ar+ one ofw/h— the other dimension is derived from the ratio.ar=4:5&w=400→ 400×500.ar+ bothwandh— the pair is treated as a bounding box; the output is the largest rectangle of the requested ratio that fits inside it.aralone — the source is reframed (cropped forfit=crop/smart-crop, padded forfit=fill) to the ratio at its native resolution.