jnordberg / gif.js

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

add disposal method specification for addFrame method #73

Closed ebrensi closed 5 years ago

ebrensi commented 7 years ago

Setting the frame disposal method is a good way to optimize a animated gif. There is much information online about it, and frame disposal code spec is given in https://www.w3.org/Graphics/GIF/spec-gif89a.txt.

For example if your gif has a static background then you can optimize the animation a lot that way. I have added a dispose code setting as pull request https://github.com/jnordberg/gif.js/pull/72.

ebrensi commented 5 years ago

apparently my pull request (#72) was merged, so the issue is resolved.