antimatter15 / jsgif

Save a HTML5 Canvas to GIF and Animations. A port of as3gif GIFPlayer to JS
http://antimatter15.com/
MIT License
1.09k stars 140 forks source link

last frame of addFrame is not added to gif #16

Closed MichaelPaulukonis closed 10 years ago

MichaelPaulukonis commented 10 years ago

I don't have a small test-case yet, so I'll leave this a possibility, but it seems that if more than one frame is added via addFrame, the last frame is not actually added (does not display, does not exist w/in encoded gif).

If only one frame is added via addFrame, one frame exists. If two frames are added via addFrame, one frame exists. If three frames are added via addFrame, two frames exist. etc.

I plan on coming up with some test code, but it might be a week or so....

MichaelPaulukonis commented 10 years ago

The scenario doesn't hold if I add the last frame twice -- neither one appears. So I'm focusing on the source data now.