Background

Description

Defines the background color to use instead of transparent background areas or when resizing with padding.

Learn more: Setting background for images | Setting background for videos

Classes


new BaseGradientBackground()


new BackgroundGenerativeFillQualifier()


new BackgroundAutoBorderQualifier()


new BackgroundAutoPredominantQualifier()


new BackgroundQualifier()


new BackgroundBorderGradientQualifier()


new BackgroundPredominantGradientQualifier()


new BlurredBackgroundAction()


new BaseCommonBackground()

Methods


<static> border() → {BackgroundAutoBorderQualifier}

qualifier

Description

Selects the predominant color while taking only the image border pixels into account.

Returns

<static> auto() → {Qualifiers.Background.BackgroundQualifier}

qualifier

Description

Automatically determines the color to use for padding, if needed when resizing an asset.

Learn more: Content-aware padding


<static> borderGradient() → {BackgroundBorderGradientQualifier}

qualifier

Description

Applies a padding gradient fade effect using the predominant colors in the border of the image.

Returns

<static> predominantGradient() → {BackgroundPredominantGradientQualifier}

qualifier

Description

Applies a padding gradient fade effect using the predominant colors in the image.

Returns

<static> predominant() → {BackgroundAutoPredominantQualifier}

qualifier

Description

Selects the predominant color while taking all pixels in the image into account

Returns

<static> color() → {Qualifiers.Background.BackgroundQualifier}

qualifier

Description

Selects the predominant color while taking all pixels in the image into account.


<static> blurred() → {BlurredBackgroundAction}

qualifier

Description

Selects the predominant color while taking all pixels in the image into account.

Returns

<static> generativeFill() → {BackgroundGenerativeFillQualifier}

qualifier

Description

A qualifier that automatically fills the padded area using generative AI to extend the image seamlessly.

Returns