Created
August 31, 2019 21:55
-
-
Save adamhopkinson/2ab3c2e2a3ef53894d94ec94a0625d09 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.getElementById('canvas').toBlob(function(blob){ | |
var image = document.createElement('img'); | |
var url = URL.createObjectURL(blob); | |
image.onload = function() { | |
URL.revokeObjectURL(url); | |
} | |
console.log(url); | |
image.src = url; | |
document.body.appendChild(image); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment