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');
};