new ResizeScaleAction()

Description

Defines a scaling resize action.

Methods


liquidRescaling() → {this}

Description

Changes the aspect ratio of an image while retaining all important content and avoiding unnatural distortions.

Returns

height( x )

Description

Sets the height of the resize

Parameters
Name Type Description
x string | number

The height in pixels (if an integer is specified) or as a percentage (if a float is specified).


width( x )

Description

Sets the width of the resize

Parameters
Name Type Description
x string | number

The width in pixels (if an integer is specified) or as a percentage (if a float is specified).


aspectRatio( ratio ) → {this}

Description

Sets the aspect ratio of the asset. For a list of supported types see AspectRatio values

Parameters
Name Type Description
ratio AspectRatioType | number | string

The new aspect ratio, specified as a percentage or ratio.

Returns

getActionTag() → {string}

Description

Returns the custom name tag that was given to this action

Returns
Details

setActionTag() → {this}

Description

Sets the custom name tag for this action

Returns
Details

toString() → {string}

Description

Calls toString() on all child qualifiers (implicitly by using .join()).

Returns
Details

addQualifier( qualifier ) → {this}

Description

Adds the parameter to the action.

Parameters
Name Type Description
qualifier SDK.Qualifier
Returns
Details

relative() → {this}

Description

Modifies percentage-based width & height parameters of overlays and underlays (e.g., 1.0) to be relative to the containing image instead of the added layer.

Returns

addFlag( flag ) → {this}

Description

Adds a flag to the current action.

Parameters
Name Type Description
flag Qualifiers.Flag
Returns
Details

regionRelative() → {this}

Description

Modifies percentage-based width & height parameters of overlays and underlays (e.g., 1.0) to be relative to the overlaid region

Returns