Export Canvas as .gif image
17,753
This will answer your question. In short, try console.log'ing your data, and, not all browsers will support writing to a gif.
Author by
Donnie Ibiyemi
Updated on August 02, 2022Comments
-
Donnie Ibiyemi almost 2 years
I've been pulling my hair out trying to export my html5 canvas a .gif image,i was able to succesfully save it as a .png file. i dnt know what am doing wrong here is my simple code
canvas.onclick = function () { window.location = canvas.toDataURL('image/gif'); };