jnordberg / gif.js

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

how can i generate a transparent gif? #52

Open king-king opened 8 years ago

king-king commented 8 years ago

my png is transparent,but i can not get a transparent gif

1j01 commented 8 years ago

See https://github.com/jnordberg/gif.js/issues/5

xiaoyu2er commented 8 years ago

@king-king

var gif = new GIF({
    transparent: 'rgba(0,0,0,0)'
})
king-king commented 8 years ago

@xiaoyu2er thanks ,i will have a try

3ksan commented 6 years ago

@king-king have you solved this problem? I want to generate a transparent gif too. Thanks!

king-king commented 6 years ago

@coqqu no

karim23657 commented 2 years ago

Just use https://github.com/adriandelisle/gif-transparency