jnordberg / gif.js

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

Uncaught TypeError: Object [object Array] has no method 'set' #8

Closed jsundram closed 11 years ago

jsundram commented 11 years ago

I'm adding frames from a processing.js sketch using gif.addImage(document.getElementById("my_canvas_id"), 30);

when I call gif.render, when the rendering is finished, I get a

rendering finished - filesize 4180kb gif.js:1
Uncaught TypeError: Object [object Array] has no method 'set' (gif.js:1)
a.finishRendering (gif.js:1)
a.frameFinished (gif.js:1)
c.onmessage (gif.js:1)
jnordberg commented 11 years ago

I just pushed up 0.1.1, try with that. Also, now addImage(img, delay) is replaced with addFrame(img, options)

jsundram commented 11 years ago

Thanks, that worked.