convert canvas to imageURI
问题 I develop application using Phonegap ( Cordova ) and I have a problem trying to convert canvas to imageURI and to save it into sdcard. Here is my code: function saveCanvasAsImage(imageURI) { var gotFileEntry = function(fileEntry) { var gotFileSystem = function(fileSystem) { var d = new Date(); var n = d.getTime(); // copy the file fileEntry.moveTo(fileSystem.root.feelathome, n + ".jpg", null, null); }; // get file system to copy or move image file to window.requestFileSystem(LocalFileSystem