convert image url to canvas javascript code example
Example 1: get image url from canvas
var dataURL = canvas.toDataURL();
Example 2: convert canvas to DataUrl and insert image in google sheet
function insertSiginSht(blb) {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
sheet.insertImage(blb, 2,2);
}