imgbt
Transforms

Transform Parameters

All available image transformation parameters.

Transform Parameters

Transform images on the fly by adding query parameters to the delivery URL.

https://your-vault.imgbt.com/path/to/image.jpg?w=800&h=600&fit=cover&format=webp&q=85

Dimensions

ParameterTypeRangeDescription
winteger1–8192Target width in pixels
hinteger1–8192Target height in pixels
dprnumber1–3Device pixel ratio multiplier

The effective dimensions are w x dpr and h x dpr. The total pixel area must not exceed 25,000,000 pixels.

Resizing

ParameterValuesDescription
fitcover, contain, fill, inside, outsideHow the image fits the target dimensions
  • cover — Resize to fill the dimensions, cropping if necessary
  • contain — Resize to fit within dimensions, preserving aspect ratio
  • fill — Stretch to exactly fill dimensions (may distort)
  • inside — Like contain, but never enlarge
  • outside — Like cover, but never shrink

Format & Quality

ParameterAliasValuesDescription
formatfwebp, avif, png, jpg, gifOutput format
qualityq1–100Compression quality

Effects

ParameterAliasTypeRangeDescription
blurinteger1–100Gaussian blur intensity
sharpeninteger1–100Sharpening intensity
rotatertinteger0, 90, 180, 270Rotation in degrees
flipstringh, vFlip horizontally or vertically
grayscalebooleantrue, falseConvert to grayscale

Cropping

ParameterAliasValuesDescription
cropface, auto, entropy, attentionSmart crop mode
gravitygSee belowCrop anchor point

Gravity Values

Compass directions: center, north, south, east, west, northeast, northwest, southeast, southwest

Smart values: face, auto

Color & Decoration

ParameterFormatDescription
bg6-char hex (e.g., ff0000)Background color for transparent images
border{width},{color} (e.g., 5,ff0000)Add a border
radiusinteger or maxCorner radius (use max for circle)

Examples

Thumbnail

?w=200&h=200&fit=cover&format=webp&q=80

Social Media Card

?w=1200&h=630&fit=cover&format=jpg&q=90

Retina Avatar

?w=64&h=64&fit=cover&crop=face&dpr=2&format=webp

Blurred Background

?w=1920&h=1080&fit=cover&blur=50&q=60&format=webp