Image Edge — Talks.co

On-the-fly image resizing.

Usage

https://edge.talks.co/{path-to-image}?w=300&q=80&fit=cover&gravity=auto

Params

wWidth in pixels — snapped up to the nearest of 56, 82, 112, 150, 296, 600, 1200
hHeight in pixels — scaled with the snapped width to preserve the requested aspect ratio (snapped to the ladder if given without w)
dprDevice pixel ratio multiplier (1-3, default 1), applied before snapping
fitscale-down (default), contain, cover, crop, pad
gravityauto (smart crop), center, north, south, east, west, etc.
qQuality 1-85, default 85
formatavif, webp, jpeg, png — auto from Accept header if omitted (auto picks webp/jpeg only; avif must be explicit)
bgBackground colour for fit=pad
trim1 to auto-crop solid-colour borders