[HTML5] Is it possible to use animated webp?


I have just tested the webp format: I load them by replacing my PNG spritesheets with WEBP files renamed as .PNG (the app reads the header), and the application runs as before, but with a significant reduction of the size of the images.

Now I am wondering if it is possible, for animations, to use animated GIF/WEBP…


I think we would need a little bit of code to handle them on canvas, because we assume images are unchanging, but on the DOM target especially, it certainly would be possible :slight_smile:


They could be converted to tilemaps and rendered like animated tiles :slight_smile:
Yes, a bit of code… it could be possible, I would just need to know how I can access the single frames.