antimatter15 / weppy

Javascript WebP Library
114 stars 12 forks source link

Animated WebP support #5

Open mathiasbynens opened 10 years ago

antimatter15 commented 10 years ago

I'm a little disappointed that browser vendors don't just allow IMG with WebM as a SRC, treating it like a video with autoplay, loop, nocontrols and mute. In part because it would have made updating weppy trivial.

I need to read more about how animated webp works, but I figure it (by way of alpha transparency or what not) does a mild amount interframe compression that I'm not sure can be implemented without a full blown decoder. On Jan 27, 2014 6:33 AM, "Mathias Bynens" notifications@github.com wrote:

— Reply to this email directly or view it on GitHubhttps://github.com/antimatter15/weppy/issues/5 .

maxstepin commented 10 years ago

Take a look at this implementation of Animated PNG support without a full blown decoder:

https://github.com/davidmz/apng-canvas

Some interesing ideas there, could be worth borrowing...