jnordberg / gif.js

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

Part of the generated gif has a black background ,please help me how to deal with it? #135

Closed Lanchouchou closed 3 years ago

Lanchouchou commented 3 years ago

const gif = new GIF({ workers: 2, quality: 5, transparent: 0x00000000, workerScript: worker, }) and gif.addFrame(window.mo.canvas, { copy: true, delay: 1000 / 24, dispose: 0, }) this is an error result:

image

the correct background will be transparent,like this:

image