threerings / playn

Legacy 1.x version of PlayN library.
http://playn.io/
Apache License 2.0
195 stars 66 forks source link

Support for GIF Animations #79

Closed BenDol closed 9 years ago

BenDol commented 9 years ago

Hey wondering if there would be a way to load a GIF image and animate it? It makes sense that this could be possible with Java, but to have this work on HTML is probably not as straight forward? Anyway appreciate any help I can get!

BenDol commented 9 years ago

Got my GIF files extracted and loaded as sprite sheets, but the sprites end up taking up 100mb per unique instance. Might need some help optimizing my images haha. Thanks!

samskivert commented 9 years ago

Yeah, this is not really something that would be implemented at the platform layer. We couldn't automatically process GIFs in the HTML backend, and it's not really worth the trouble for the other backends. Better to pre-process your GIF and do it in a library that someone (other than me) writes which works on top of PlayN.