wasm_resize_rgba 0.7.0

esm modules for image resizing using the CatmullRom (hq) or Hamming methods, with sync and async (worker) versions
Documentation
1
2
3
4
5
6
7
8
9
importScripts('./resize_for_importScripts.js');
(async()=>{
  const fn=await resize;
  onmessage=async({data:{data,sourceWidth,sourceHeight,targetWidth,targetHeight,hq}})=>{
    const r=fn(data,sourceWidth,sourceHeight,targetWidth,targetHeight,hq);
    postMessage(r,[r.buffer]);
  }
  postMessage('ready');
})();