Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function convertImgToBlob(img) {
return blobUtil.imgSrcToBlob(img).then(blobUtil.blobToBase64String)
.catch(err => {
log.info(err);
});
}