Overview
Sources
Libraries
Images API

Compose Blend Mode compose-blend

Specifies the blend mode that will be applied when blending compose and source image.

Values

Accepted values for this parameter are overlay, over, add, burn, darken, difference, exclusion, dodge, hardlight, softlight, lighten, multiply, and screen with overlay as default value.

Overlay

Overlay mode multiplies or screens colors, depending on the lightness of the destination color.

If not compose-blend is specified overlay mode will be used by default:

GET
https://assets.imglab-cdn.net/woman-03.jpeg?compose-blend=overlay
Woman posing with pine forest image used as composed image with overlay as compose blend mode.
x px

Over

Compose blend mode over will render the compose image over the source image as it is.

In this example we are using compose-blend=over with compose-alpha=50 applying alpha transparency to the compose image:

GET
https://assets.imglab-cdn.net/woman-03.jpeg?compose-blend=over&compose-alpha=50
Woman posing with pine forest image used as composed image with over as compose blend mode.
x px

Add

Add mode will result in the addition of both colors from compose and source image.

Use compose-blend=add parameter to apply this mode:

GET
https://assets.imglab-cdn.net/woman-03.jpeg?compose-blend=add
Woman posing with pine forest image used as composed image with add as compose blend mode.
x px

Burn

Burn mode darkens the destination color by a factor depending on the source image color.

Use compose-blend=burn parameter to apply this mode:

GET
https://assets.imglab-cdn.net/woman-03.jpeg?compose-blend=burn
Woman posing with pine forest image used as composed image with burn as compose blend mode
x px

Darken

Darken mode selects the darker of the color values in each component.

Use compose-blend=darken parameter to apply this mode:

GET
https://assets.imglab-cdn.net/woman-03.jpeg?compose-blend=darken
Woman posing with pine forest image used as composed image with darken as compose blend mode.
x px

Difference

Difference mode takes the difference of the destination and source colors.

Use compose-blend=difference parameter to apply this mode:

GET
https://assets.imglab-cdn.net/woman-03.jpeg?compose-blend=difference
Woman posing with pine forest image used as composed image with difference as compose blend mode.
x px

Exclusion

Similar to difference mode but with lower contrast.

Use compose-blend=exclusion parameter to apply this mode:

GET
https://assets.imglab-cdn.net/woman-03.jpeg?compose-blend=exclusion
Woman posing with pine forest image used as composed image with exclusion as compose blend mode.
x px

Dodge

Dodge mode brightens the destination color by a factor depending on the source image color.

Use compose-blend=dodge parameter to apply this mode:

GET
https://assets.imglab-cdn.net/woman-03.jpeg?compose-blend=dodge
Woman posing with pine forest image used as composed image with dodge as compose blend mode.
x px

Hardlight

Hardlight mode multiplies or screens colors, depending on the lightness of the source image color.

Use compose-blend=hardlight parameter to apply this mode:

GET
https://assets.imglab-cdn.net/woman-03.jpeg?compose-blend=hardlight
Woman posing with pine forest image used as composed image with hardlight as compose blend mode.
x px

Softlight

Softlight mode darkens or lightens, depending on the source image color.

Use compose-blend=softlight parameter to apply this mode:

GET
https://assets.imglab-cdn.net/woman-03.jpeg?compose-blend=softlight
Woman posing with pine forest image used as composed image with softlight as compose blend mode.
x px

Lighten

Lighten mode selects the lighter of the color values for each component.

Use compose-blend=lighten parameter to apply this mode:

GET
https://assets.imglab-cdn.net/woman-03.jpeg?compose-blend=lighten
Woman posing with pine forest image used as composed image with lighten as compose blend mode.
x px

Multiply

With multiply mode the result color is at least as dark as the darker of the two input colors.

Use compose-blend=multiply parameter to apply this mode:

GET
https://assets.imglab-cdn.net/woman-03.jpeg?compose-blend=multiply
Woman posing with pine forest image used as composed image and multiply as compose blend mode.
x px

Screen

With screen mode the result is at least as light as the lighter of the input colors.

Use compose-blend=screen parameter to apply this mode:

GET
https://assets.imglab-cdn.net/woman-03.jpeg?compose-blend=screen
Woman posing with pine forest image used as composed image and screen as compose blend mode.
x px