Skip to content

Instantly share code, notes, and snippets.

@kypflug
Created Jun 11, 2015
Embed
What would you like to do?
function savePhoto()
{
var canvas = document.getElementById('canvasTag');
var imgData = canvas.msToBlob("image/jpeg");
navigator.msSaveBlob(imgData, "myPhoto.jpg");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment