jnordberg / gif.js

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

fix the transparency gif in pull request #78

Open Jandou6 opened 7 years ago

Jandou6 commented 7 years ago

I have a pull request that fix the transparency Bug. I hope that author can see it.

Jandou6 commented 7 years ago

77 in here

SouthpawGoblin commented 6 years ago

This PR really saved my day! Thanks and hope it can be merged soon.

programmerC commented 5 years ago

hey guy, I quoted your gif.js and gif.worker.js and then I am getting an error. ctx.getImageData is not a function at GIF.getContextData (gif.js:2) at GIF.getTask (gif.js:2) at GIF.renderNextFrame (gif.js:2) at GIF.render (gif.js:2)

here is my code: var gif = new GIF({ workers: 4, quality: 10, background: '#000', transparent: 'rgba(0,0,0,0)' }); gif.addFrame(canvas, { delay: 200, copy: true });

nicolasdelfino commented 4 years ago

@programmerC @SouthpawGoblin Has one of you managed to get this to work?