Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic format filtering for animated images #260

Closed
zachleat opened this issue Dec 13, 2024 · 5 comments
Closed

Automatic format filtering for animated images #260

zachleat opened this issue Dec 13, 2024 · 5 comments

Comments

@zachleat
Copy link
Member

zachleat commented Dec 13, 2024

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

@zachleat zachleat added the enhancement New feature or request label Dec 13, 2024
@zachleat zachleat added this to the Eleventy Image v6.0.0 milestone Dec 13, 2024
@zachleat
Copy link
Member Author

Barely related to #257

@zachleat
Copy link
Member Author

#261 would be better than this but way more complex

@zachleat
Copy link
Member Author

Related to #71

@zachleat
Copy link
Member Author

Shipping with v6.0.0-beta.1

@zachleat
Copy link
Member Author

zachleat commented Jan 4, 2025

#105 added a formatFiltering: ["transparent", "animated"] option to opt out of format filtering for either transparency or animation or both

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant