Skip to content

Automatic format filtering for animated images #260

@zachleat

Description

@zachleat

If the source image is animated and sharpOptions.animated is true, filter out any non-animation friendly formats (anything not GIF/WebP).

If no valid output formats are left, fallback to previous formats with non-animated output (this is the current default behavior when sharpOptions.animated is unspecified—defaults to false).

Log a warning when this happens.

Confusion at #219 #139 #230
Similar to #163

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions