Overview
Sources
Libraries
Images API

Compose Padding compose-padding

Specifies a number of pixels to be added as padding to the compose image.

Values

This parameter accepts integer values in the range 0 to 500 with 0 disabling compose padding.

  • 1: add 1 pixel of padding to the compose image.
  • 500: add 500 pixels of padding to the compose image.

The default value for this parameter is 0, not adding any padding to the compose image.

compose-padding sets the specified value to all edges of the compose image. To set a value for one specific edge you can use the following parameters:

  • compose-padding-top
  • compose-padding-right
  • compose-padding-bottom
  • compose-padding-let

Examples

If no value is specified for compose-padding a default value of 0 is used, so no padding will be added:

GET
https://assets.imglab-cdn.net/woman-03.jpeg
Woman posing with gradient used as compose image and a default compose padding of 0 pixels.
x px

In this example we are specifying a right padding of 60 pixels with compose-padding-right=60 parameter:

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

In this example we are specifying a padding of 20 pixels with compose-padding=20 parameter:

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