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

Animated webp images are not animated after optimization #39

Open
dawidkowalik opened this issue Jun 12, 2024 · 1 comment
Open

Animated webp images are not animated after optimization #39

dawidkowalik opened this issue Jun 12, 2024 · 1 comment

Comments

@dawidkowalik
Copy link

Hello, I've noticed that I can't use the plugin with webp animations.

https://github.com/FatehAK/vite-plugin-image-optimizer/blame/a281c44fd2d18dd91d2c093704833b5592fb86f4/src/index.ts#L104
return await sharp(buffer, { animated: extName === 'gif' })

I guess it's related to this condition. Is it something that can be fixed?

Thank you!

@otomad
Copy link

otomad commented Nov 7, 2024

In addition, except webp images, apng images are also not supported. Although the sharp library does not support apng image format yet, it is better to also include "png" and "apng" extensions here as well.

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

No branches or pull requests

2 participants