How to use the blob-util.imgSrcToBlob function in blob-util

To help you get started, we’ve selected a few blob-util examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github willyb321 / media_mate / app / renderjs / viewer.js View on Github external
function convertImgToBlob(img) {
	return blobUtil.imgSrcToBlob(img).then(blobUtil.blobToBase64String)
		.catch(err => {
			log.info(err);
		});
}