Pixi.js: Gif support

Created on 18 Oct 2013  路  7Comments  路  Source: pixijs/pixi.js

Hey guys, pixi.js has support for gif images? Let me know if you have it and I need to insert gifs on canvas, thanks in advance :).

Greeting

Most helpful comment

https://github.com/sbfkcel/pixi-apngAndGif

Let Pixi.js support apng, gif images. And allow control of its operation.

All 7 comments

gif images work fine in canvas, just not animated ones (you'll only ever see the first frame rendered).

Cool , I麓ll keep that in mind :dancer:

howdy, closing as this seems resolved

https://github.com/sbfkcel/pixi-apngAndGif

Let Pixi.js support apng, gif images. And allow control of its operation.

can anyone please let me know how can i animate the gif?
i want to render the full gif.

Because of the browser limitations with GIF, there is not an easy path and this is unlikely to be a media source we invest serious time in. If someone want to make a plugin, it seems like there are some GIF parsing libraries available that might help (and there seems like interest here!)

As a workaround, for animated sequences I'd suggest using AnimatedSprite or creating a video and using video source for the BaseTexture. These options will give you a much better playback experience, better file sizes, and better compression options.

Thanks @bigtimebuddy

Was this page helpful?
0 / 5 - 0 ratings

Related issues

madroneropaulo picture madroneropaulo  路  3Comments

lunabunn picture lunabunn  路  3Comments

MRVDH picture MRVDH  路  3Comments

samueller picture samueller  路  3Comments

Makio64 picture Makio64  路  3Comments