Skip to main content

Parameter reference

Log in to add to favourites

Page last updated 07 October 2026

Every parameter the Image API accepts, with the values it recognises. Parameters are applied in the order they are given, except that images are turned the right way up first and format and quality are applied last.

ParameterShortValuesNotes
widthwWhole number of pixelsGiven on its own, the height follows the aspect ratio. Keep it next to height.
heighthWhole number of pixelsGiven on its own, the width follows the aspect ratio.
fitmax, contain, fill, stretch, crop, crop-top (crop-t), crop-bottom (crop-b), crop-left (crop-l), crop-right (crop-r)Default max. Must follow the width and height. An unrecognised value falls back to max.
cropwidth,height,anchor or width,height,x,yAnchors: center (c), top (t), bottom (b), left (l), right (r), top-left (tl), top-right (tr), bottom-left (bl), bottom-right (br).
fpx,y between 0 and 1The point a crop is composed around. Give it after the dimensions and fit. Send the comma literally.
backgroundbgHex colour of 3, 4, 6 or 8 digitsFills transparency that exists when it is reached, so give it after the fit or rotation.
rotater1 to 359Clockwise. Angles other than 90, 180 and 270 leave empty corners.
fliphorizontal (h), vertical (v), both (b)
blurb1 to 100Measured in pixels, so resize before blurring for a consistent result.
effectegrayscaleAmerican spelling only.
formatfjpeg, png, webp, gif, tiff, bmpApplied last. An unrecognised value returns a JPEG. bmp returns a PNG. Without it the original format is kept, except a TIFF which is returned as WebP.
qualityq1 to 100Applied last. JPEG and WebP only, defaulting to 75 and 80. Ignored for PNG, GIF and TIFF.
invalidationKeyAny valueAllows an image requested by its plain path to be cached for a year. Change it whenever the image changes.

Limits

  • A transformed image is at most 16 megapixels, and no more than 8,192 pixels on its longest side. Larger requests are scaled down to fit.
  • A source image is not transformed above 50MB, or if its frame is larger than 50 megapixels. Neither limit applies to a request with no transformation parameters, which returns the original.
  • A parameter or value the Image API does not recognise is ignored, and the rest of the request still applies.

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request