new BackgroundAutoPredominantQualifier()

Description

Automatically determines the color to use for padding, if needed when resizing an asset. Selects the predominant color from the whole image.

Methods


toString()

Description

Stringify the qualifier BackgroundQualifiers don't have a value, but instead override the toString() function.


contrast() → {this}

Description

Selects the strongest contrasting color to use for padding.

Returns

palette( ...colors ) → {this}

Description

Defines the custom colors to use when resizing using content-aware padding.

Parameters
Name Type Attributes Description
colors string <repeatable>

One or more colors - Example: palette('green', 'red', blue')

Returns