util-helpers
Version:
13 lines (10 loc) • 364 B
JavaScript
import getFileBlob from './getFileBlob.js';
import loadImage from './loadImage.js';
function loadImageWithBlob(img, ajaxOptions) {
return getFileBlob(img, ajaxOptions).then(function (blob) {
return loadImage(blob).then(function (image) {
return { blob: blob, image: image };
});
});
}
export { loadImageWithBlob as default };