I am pulling my hair out trying to export the html5 canvas to a .gif image, I was able to save it successfully as a .png file. I don't know what I am doing wrong here, this is my simple code
canvas.onclick = function () {
window.location = canvas.toDataURL('image/gif');
};
source
to share