import{n as e}from"./transcode-CQf3sO1K.js";function t(t){let n=e(t.width,t.height),r=new OffscreenCanvas(n.width,n.height).getContext(`2d`);if(!r)throw Error(`no 2d context`);return r.drawImage(t,0,0,n.width,n.height),r.getImageData(0,0,n.width,n.height)}export{t};