jnordberg / gif.js

JavaScript GIF encoding library
http://jnordberg.github.io/gif.js/
MIT License
4.74k stars 668 forks source link

Could you please include a example on how to use it in react ?? #129

Open GouthamJM opened 3 years ago

1j01 commented 3 years ago

Are you using Create React App? See https://github.com/jnordberg/gif.js/issues/115 for how to get it to load the worker properly. Other than that, you shouldn't run into any interoperability problems, and you should be able to find React examples according to the sort of UI you want, and merge it with Gif.js example code. What sort of UI do you want? I can help further if you explain thoroughly.

GouthamJM commented 3 years ago

I want to generate a transparent background gif from canvas or png