const g=(n,r)=>{const t=new Image;t.src=URL.createObjectURL(n);let c=1500,o=1500;t.onload=()=>{const e=document.createElement("canvas");e.width=c,e.height=o,e.getContext("2d").drawImage(t,0,0,c,o),e.toBlob(s=>{const a=new FileReader;a.onloadend=()=>{r(a.result)},a.readAsDataURL(s)},n.type,.8)}};export{g as r};
