I have code that works fine
function convertImgToBase64URL(url, callback, outputFormat){ var img = new Image(); img.crossOrigin = \'Anonymous\'; i