Skip to main content

Multiple transformations

Log in to add to favourites

Page last updated 07 October 2026

Transformations can be combined together to apply multiple changes to an image as part of a single delivery request, e.g. crop an image and then apply a grayscale image effect. In certain cases you may want to perform additional transformations on the result of another transformation request. In order to do that, you can chain the transformations together using an & ampersand character.

Some parameters only act on the transformation immediately before them. A fit applies to the resize it follows, and a background colour fills transparency that exists when it is reached, so both are given after the transformation they belong to. A parameter the Image API does not recognise, or a value it cannot use, is ignored and the rest of the request still applies.

Internally, the final output of the transformed image requires a quality level to be provided. If no quality level is specified, the Image API will automatically apply a default which balances between reducing image size and maintaining image quality. In some cases these defaults are not going to be perfect and you may find that you need to specify your own quality setting. That is more likely to be the case if the source image is not high quality, such as when the source image has already been pre-optimised for the web. For reference, the quality defaults are:

  • Jpeg: 75
  • Webp: 80

Quality applies to JPEG and WebP images only. PNG, GIF and TIFF have no detail to trade for a smaller file, so any quality value given for them is ignored.

To get the best results from the Image API in terms of size reduction and quality you should use high-quality images as the Image API can handle images up to 50MB in size. In general, it is always worth carrying out a short experiment with some representative images from any collection of images that will share the same transformation parameters. You can then ensure that you have achieved an acceptable balance between image size and quality.

Width

The coastal landscape resized to 500 pixels wide

Width and quality

The coastal landscape at 500 pixels wide and quality 50

Width, quality and grayscale effect

The coastal landscape at quality 50 in black and white

Repeating transformations

The coastal landscape turned a quarter turn clockwise, in black and white, at 300 pixels wide

Each step works on the result of the one before it, so the final width applies to the rotated image rather than the original.

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