PageSourceSearch

https://www.kapwing.com/assets/image-thumbnail-BM1U2msf.js

js kapwing.com collected 2026-09-24 09:14:11 UTC 1,067 bytes, 3 lines download raw bytes

1(function(){function v(a,o,c,r,t,s,e,n){const m=Math.min(t/e,s/n);let w=e*m,p=n*m,u,g,i,f,d=1;w<t&&(d=t/w),Math.abs(d-1)<1e-14&&p<s&&(d=s/p),w*=d,p*=d,i=e/(w/t),f=n/(p/s),u=(e-i)*.5,g=(n-f)*.5,u<0&&(u=0),g<0&&(g=0),i>e&&(i=e),f>n&&(f=n),a.drawImage(o,u,g,i,f,c,r,t,s)}function b(a,o,c,r,t,s){const e=o.width,n=o.height;v(a,o,c,r,t,s,e,n)}const l=self,h=async(a,o)=>{const{width:c,height:r}=a,t=new OffscreenCanvas(c,r),s=t.getContext("2d");if(!s)throw new Error("Could not get canvas context");let e;try{return e=await createImageBitmap(o),b(s,e,0,0,t.width,t.height),await t.convertToBlob()}finally{e?.close()}};l.onmessage=async a=>{const o={id:a.data.id};try{const c=await fetch(a.data.url);if(!c||!c.ok){l.postMessage(o);return}const r=await c.blob(),t=[];t.push(h(a.data.trackPreviewOutputDimensions,r)),a.data.previewOutputDimensions&&t.push(h(a.data.previewOutputDimensions,r));const[s,e]=await Promise.all(t),n={id:a.data.id,trackPreviewBlob:s,previewBlob:e};l.postMessage(n)}catch{l.postMessage(o)}}})();
2
3//# sourceMappingURL=image-thumbnail-BM1U2msf.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.