new ToAnimatedAction()

Description

Converts a video to an animated webp or gif. The resulting transformation includes format (f_format) and the animated flag (fl_animated). The flag fl_awebp is added only when an animated webp is requested.

Details

Visit Transcode for an example

Methods


getActionTag() → {string}

Description

Returns the custom name tag that was given to this action

Returns

delay( delayValue )

Description

Sets the time between frames.

Parameters
Name Type Description
delayValue

The time in milliseconds.


setActionTag() → {this}

Description

Sets the custom name tag for this action

Returns

sampling( sampling )

Description

Sets the frequency at which the video is sampled.

Parameters
Name Type Description
sampling

As a string (e.g. '2.3s'), samples one frame every 2.3 seconds.
As a number (e.g. 20), samples that many equally spaced frames over the duration of the video.


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

addFlag( flag ) → {this}

Description

Adds a flag to the current action.

Parameters
Name Type Description
flag Qualifiers.Flag
Returns
Details