filepond
Version:
FilePond, where files go to stretch their bits.
24 lines (23 loc) • 375 B
JavaScript
/*!
* FilePond v5.0.2
* Copyright (c) 2017-2026 Pqina B.V.
* Released under the MIT License
* https://filepond.com
*/
function l(t, o) {
const { type: e, quality: r } = o || {};
return new Promise((u, i) => {
t.toBlob(
(n) => {
if (n === null)
return i();
u(n);
},
e,
r
);
});
}
export {
l as canvasToBlob
};