This function converts ImageData to blob and returns it in callback function
function (imageData, cb) { ... }
cb = function (blob) { ... }
This function converts imageData to Blob object. It will always pass Blob object, even if imageData is malformed.
module.require([
"convert :: convert",
], function (convert) {
convert.imageDataToBlob(imgData, function (blob) {
//blob is a Blob object
});
});