davidmz / apng-canvas

APNG implementation on canvas.
https://davidmz.github.io/apng-canvas/
MIT License
668 stars 93 forks source link

Question: Is this approach able to apply with animated gif / animated SVG? #29

Closed kochizufan closed 3 years ago

kochizufan commented 3 years ago

I'm original questioner of this stackoverflow article. https://stackoverflow.com/questions/67660696/can-the-latest-openlayers-render-the-animated-marker-using-gif-apng-webp

The point is, old style web map engine uses div+img elements for the markers on the map, so animated XXX type image can be used for animated marker. But the modern web map engine uses canvas or even webgl, so it became tough to realize animated marker.

I want to make it easy by creating some libraries for updating canvas context on each frame. But I have less knowledge about such other formats like animated gif / SVG, so I'm not sure similar approach with your library can be used for such formats. Do you give me advise if it is worse to customize this library for them or not, if you know?

If it is worse, I'll try to customize...

kochizufan commented 3 years ago

I fixed by myself https://github.com/code4history/Gyeonghwon