Overview
Sources
Libraries
Images API

Compose Scale compose-scale

Specifies the scale used to render the compose image in relation to the source image.

Values

This parameter accepts integer values in the range 0 to 100 with 0 disabling scale resize and rendering the compose image original size.

  • 1: minimum scale that will render the compose image to fit 1% of the source image.
  • 100: will scale compose image to fit the entire source image.

The default value for this parameter is 0 rendering compose image original size.

Examples

Specifying a scale of 25 the compose image will be resized to fit the 25% of the source image using compose-scale=25:

GET
https://assets.imglab-cdn.net/woman-03.jpeg?compose-scale=25
Woman posing with gradient used as compose image and a compose scale of 25%.
x px

Specifying a scale of 50 the compose image will be resized to fit the 50% of the source image using compose-scale=50:

GET
https://assets.imglab-cdn.net/woman-03.jpeg?compose-scale=50
Woman posing with gradient used as compose image and a compose scale of 50%.
x px

Specifying a scale of 100 the compose image will be resized to fit the 100% of the source image using compose-scale=100:

GET
https://assets.imglab-cdn.net/woman-03.jpeg?compose-scale=100
Woman posing with gradient used as compose image and a compose scale of 100%.
x px