Are they any library to do so?
AFAIK dataToURL('image/gif') isn't supported by any browser
Are they any library to do so?
AFAIK dataToURL('image/gif') isn't supported by any browser
Canvas can't generate (animated) GIFs. You need to use a JavaScript library to do so.
There is jsgif, a JS library to generate animated GIFs: http://github.com/antimatter15/jsgif
This blog post explains the usage: http://antimatter15.com/wp/2010/07/javascript-to-animated-gif/
https://github.com/spite/ccapture.js/ looks like an easier and better alternative to capture to gif or video.