bunderstackbunderstack/ docs

Thumbnails

On-the-fly image transforms via sharp

Append transform params to any image URL. First request generates and caches; repeat requests hit the cache.

Query parameters

ParamValuesDescription
wintegerWidth in pixels
hintegerHeight in pixels
fitcover | contain | fill | inside | outsideResize strategy
formatwebp | jpeg | png | avifOutput format
quality1–100Compression quality

Examples

/files/photo.jpg?w=200&h=200&format=webp
/files/photo.jpg?w=400&fit=contain
/files/photo.jpg?format=avif&quality=80

On this page