As the title says, I have a canvas object which already contains an image which was loaded by drag and drop. If I try to do:
dataURL = canvas.toDataURL();
var newImage = new Image();
newImage.src = dataURL;
For some reason it won't work. Why? How can I do it, then?