{"_id":"@jsquash/resize","_rev":"8-7407e006a61a628b0ca582ee573acd54","name":"@jsquash/resize","dist-tags":{"latest":"2.1.1"},"versions":{"1.0.0":{"name":"@jsquash/resize","version":"1.0.0","keywords":["image","resize","hqx","squoosh","wasm","webassembly","lanczos3","crop"],"author":{"name":"Jamie Sinclair","email":"jamsinclairnz+npm@gmail.com"},"license":"Apache-2.0","_id":"@jsquash/resize@1.0.0","maintainers":[{"name":"jamsinclair","email":"jamsinclairnz+npm@gmail.com"}],"dist":{"shasum":"a55e30f51efd3d17679ca2f74e4ed454978d3af8","tarball":"https://registry.npmjs.org/@jsquash/resize/-/resize-1.0.0.tgz","fileCount":25,"integrity":"sha512-dxfleDgU5QnlvkWG7bX4r/z2JHKh4Ke05/sh+Zy2l8wD0oAvv9uJR3q26JiaxDr2qNeKCaOMDhEj+u2xcp+Miw==","signatures":[{"sig":"MEUCIQDQmaWp3SRn741GaLp6ouCQjriTQmrEGW4tMe1iSBrchwIgA/QGQNhwl/08tOrZIjSE3EDJ9u7V3srxAAxLi6OUF1A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":231373,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhvVg0CRA9TVsSAnZWagAAMe0P/j0qnsXd73zqba4U+fcZ\njUYTRRpHTXNwpMsNzeRySm1dYuu3bCwxX8bZzNgZxtE/kGGOd+NjKkUCVRO/\nf1n4l1JXfxeoJZWy/VPqilbqw9tuXwMTLJMm1Ksup/u4Yp4+xQzskMIB10DU\n9kgpx53RO7i1Rwug2DRVqbYGh49KJXFig1GbN+mLXYuZTSM+7tKUdaBxW1H4\nffmavUC7FlTEpMDnTf5BLvoynYhsjsHahvEdyRxe7sm6lKP2bblHTtEhSke+\nieISXTukVywuUggqHstcDoiLMHevWcBl9qf1Y/xfMfs/50dSeWT+zaTGL/Bi\nrEC2IR5cqzBOfFA/252hVK66L68nzGg1rooAwEl91brrnpJeNHS15SUyK3TT\nPYvXe50zrvZofD6G1Zr+MkoU5jkIgEhrEekD1izfntjmyZc17PStg4Vzm+CL\ndg5jcqf+58QdpWAO/kwiyL+s2b5JyGFkwq8K2ghQCVz+Oo3JZLkZ2u68EsOe\n7Q/ZbijHRUPp0QyRUke/AlZkqUR5U8EShFaoWrINc5J64ewFfXJNcIjJs3Yv\nfvyh2zeyh0wwKD6mOa6Zw0vQF68VdZkJ9UzEXyCBXchoFE/nqkxjvp8sJd2z\nEKNoAXs9ok4mNy8ObOu/pLan7p+sLoOrCgHGS4lL1ULE++ArtqEbLT2Cpsfg\n2RD7\r\n=7uOK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","type":"module","types":"./index.d.ts","gitHead":"56061666871a857a3aa25adff2c558d6d55516d3","scripts":{"build":"npm run clean && tsc && cp -r lib package.json README.md .npmignore dist","clean":"rm -rf dist"},"_npmUser":{"name":"jamsinclair","email":"jamsinclairnz+npm@gmail.com"},"repository":{"url":"jamsinclair/jSquash/packages/resize","type":"git"},"_npmVersion":"8.1.2","description":"Wasm image resize methods supporting the browser and V8 environments. Repackaged from Squoosh App.","directories":{},"sideEffects":false,"_nodeVersion":"16.13.1","_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/resize_1.0.0_1639798836477_0.11824483682130538","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@jsquash/resize","version":"1.0.1","keywords":["image","resize","hqx","squoosh","wasm","webassembly","lanczos3","crop"],"author":{"name":"Jamie Sinclair","email":"jamsinclairnz+npm@gmail.com"},"license":"Apache-2.0","_id":"@jsquash/resize@1.0.1","maintainers":[{"name":"jamsinclair","email":"jamsinclairnz+npm@gmail.com"}],"dist":{"shasum":"3d95360763303a5524b53211d7e95d18715da45b","tarball":"https://registry.npmjs.org/@jsquash/resize/-/resize-1.0.1.tgz","fileCount":25,"integrity":"sha512-t/YxK0FIECfivReyoJD94qlXeDw0JBPMbPR9+D1EiL40hxwl4etKo5xVHT0Lmzel/+aA3LNigj63/A+GY/p3mg==","signatures":[{"sig":"MEUCIQCgQDR0iKAFpfNlMAqlLslhXSbnmnawJgX7+N3Nzi8TVQIgPkKixPzBu6hiyWwP5fPd4ajKUzqbpJPO1u5PNPOf5w4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":231314,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhv+Y0CRA9TVsSAnZWagAAIVcP/3PaOnwXgR6OZimqvWgU\nnsM11TX+XU7X+CYr2FztIkVv848ZTZngU1bnulPh6bnHrIGqSyUW9bxnhDAW\nqqhwiN039L1xrN4WR7mIwe++3HYRefvJ6KxMybKOFVCdf7wPdNKPIARpp1+H\naBRF2RNRGXPrLv32h17S+B+ZPjTMcILbMwav6rz3R78BvGTsk/IQvCmMFwHj\n3QRHxGa0uIzEvMiUmTZEvWoF/hudmC4RYNtBHYKIwOBMAUP+7acuiqWQ1URs\nInp6B+VZZOLT6hcx/ggRnreH6/HcTihZ0il57RqQ9XBb+SEiCDHk0warN/i0\n83Gr+hwByntw6YbVKlkuePQkznPgzM3s7F1OlpnEkiIbxeAbGhe5Hu+AkS6R\nzBCNaqodk86lx15ZWJs9a+2Dz/kHD36GzXJSdn1+8h9buiCvWLSQvY9XM7jo\n5xbGTYLj5EKGV2oIN4EcMUlwGxc1PyNACJwVxoSr/Eujl0xwL124Jbtfn+8B\nYQECkFRMfNItt1AKu+fE/f3BNjAehI6yNzgY4socSARO4c0mPpIwtH4ty5W0\npGATdI53p2y0BvXRjZmUSAEwmfb562/1NGrk7bMGmaIxt6S+Y4fQTtRhJYyi\nEfwtCe1MLGWXidQH6ZizlpWETzVOOlVcov5uT3XJrgf3A0qqgVhruRihKpCi\nJI9K\r\n=OJpn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","type":"module","types":"./index.d.ts","gitHead":"23dee16224cc5d462792f155de337e552b3ce17c","scripts":{"build":"npm run clean && tsc && cp -r lib package.json README.md .npmignore dist","clean":"rm -rf dist"},"_npmUser":{"name":"jamsinclair","email":"jamsinclairnz+npm@gmail.com"},"repository":{"url":"jamsinclair/jSquash/packages/resize","type":"git"},"_npmVersion":"8.1.2","description":"Wasm image resize methods supporting the browser and V8 environments. Repackaged from Squoosh App.","directories":{},"sideEffects":false,"_nodeVersion":"16.13.1","_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/resize_1.0.1_1639966260284_0.723416871826561","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@jsquash/resize","version":"1.1.0","keywords":["image","resize","hqx","squoosh","wasm","webassembly","lanczos3","crop"],"author":{"name":"Jamie Sinclair","email":"jamsinclairnz+npm@gmail.com"},"license":"Apache-2.0","_id":"@jsquash/resize@1.1.0","maintainers":[{"name":"jamsinclair","email":"jamsinclairnz+npm@gmail.com"}],"dist":{"shasum":"4fc2f81ba5d5eea99cbe05668a07843d54769fe3","tarball":"https://registry.npmjs.org/@jsquash/resize/-/resize-1.1.0.tgz","fileCount":22,"integrity":"sha512-r33zsZVU07M8aekoaqr3Pn1JuDsDBQGWWfr54GwMcwTWSngOL28WIdKcxzyz8Bri9FXdRnmPNnkqCbF4X8QYbQ==","signatures":[{"sig":"MEQCIC5OV7yAZdRS1dVgCsp2eY7bKjozAuJEXsyMrnL02K1wAiBjA+yPYCv0HPtEd8QhmUeKoo66SE5STHrS1hVSeftbqw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":253878},"main":"index.js","type":"module","types":"./index.d.ts","gitHead":"93991a37796f84cc17e7202f4878cc1fb3995659","scripts":{"build":"npm run clean && tsc && cp -r lib package.json README.md .npmignore dist","clean":"rm -rf dist","prepublishOnly":"[[ \"$PWD\" == *'/dist' ]] && exit 0 || (echo 'Please run npm publish from the dist directory' && exit 1)"},"_npmUser":{"name":"jamsinclair","email":"jamsinclairnz+npm@gmail.com"},"repository":{"url":"jamsinclair/jSquash/packages/resize","type":"git"},"_npmVersion":"10.1.0","description":"Wasm image resize methods supporting the browser and V8 environments. Repackaged from Squoosh App.","directories":{},"sideEffects":false,"_nodeVersion":"20.8.1","_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/resize_1.1.0_1700475938002_0.7687352258353191","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@jsquash/resize","version":"1.1.1","keywords":["image","resize","hqx","squoosh","wasm","webassembly","lanczos3","crop"],"author":{"name":"Jamie Sinclair","email":"jamsinclairnz+npm@gmail.com"},"license":"Apache-2.0","_id":"@jsquash/resize@1.1.1","maintainers":[{"name":"jamsinclair","email":"jamsinclairnz+npm@gmail.com"}],"dist":{"shasum":"b53f02e7e139e9b16f7215a0ab82e9e16a5beba0","tarball":"https://registry.npmjs.org/@jsquash/resize/-/resize-1.1.1.tgz","fileCount":24,"integrity":"sha512-Lw9EQhsfMiuvGmhHkI/MroP+kEBdFCqgfcmLOjZGSxaqNcwu26eqLFtjRz3Gv/OowQhtJbjONVlhchGMTDXWhQ==","signatures":[{"sig":"MEUCIAVqk3ykO44oKPNFwuYkFAE6XU/dxLVYIUYSn6c6rkyvAiEAvqSfneRNU8xRNSTSGuy6/9/BipbNIRRUC1q2Vha8l0U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":239065},"main":"index.js","type":"module","types":"./index.d.ts","gitHead":"190713cc62bf5a9260a10daa1603de8b5802b725","scripts":{"build":"npm run clean && tsc && cp -r lib package.json README.md .npmignore ../../LICENSE dist","clean":"rm -rf dist","prepublishOnly":"[[ \"$PWD\" == *'/dist' ]] && exit 0 || (echo 'Please run npm publish from the dist directory' && exit 1)"},"_npmUser":{"name":"jamsinclair","email":"jamsinclairnz+npm@gmail.com"},"repository":{"url":"jamsinclair/jSquash/packages/resize","type":"git"},"_npmVersion":"10.1.0","description":"Wasm image resize methods supporting the browser and V8 environments. Repackaged from Squoosh App.","directories":{},"sideEffects":false,"_nodeVersion":"20.8.1","_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/resize_1.1.1_1700492800907_0.5526345955507737","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@jsquash/resize","version":"2.0.0","keywords":["image","resize","hqx","squoosh","wasm","webassembly","lanczos3","crop"],"author":{"name":"Jamie Sinclair","email":"jamsinclairnz+npm@gmail.com"},"license":"Apache-2.0","_id":"@jsquash/resize@2.0.0","maintainers":[{"name":"jamsinclair","email":"jamsinclairnz+npm@gmail.com"}],"dist":{"shasum":"1452ca58267a82873487a5975720cde6af6469ce","tarball":"https://registry.npmjs.org/@jsquash/resize/-/resize-2.0.0.tgz","fileCount":27,"integrity":"sha512-7tHcS/mMzXyzB4ryDjEX+GQnae5E9FDx9COs/F873YrDvP60fvMAGEp/dbq+XBIxp40NLsP/rzHZnDVNADT2iA==","signatures":[{"sig":"MEYCIQC14VwdXWreDc9UpxIaU9o/zk7oA5CauQFjtTUTj1vP4gIhANWqu2AGARtqDV/Sva+euLt7zk01o9FDaxv50E4umlyW","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":221780},"main":"index.js","type":"module","types":"./index.d.ts","gitHead":"cec51d290fa66cee2cfe399faeb9e4ce87dba518","scripts":{"build":"npm run clean && tsc && cp -r lib package.json README.md .npmignore ../../LICENSE dist && (rm dist/lib/*/pkg/package.json dist/lib/*/pkg/.gitignore || true)","clean":"rm -rf dist","prepublishOnly":"[[ \"$PWD\" == *'/dist' ]] && exit 0 || (echo 'Please run npm publish from the dist directory' && exit 1)"},"_npmUser":{"name":"jamsinclair","email":"jamsinclairnz+npm@gmail.com"},"repository":{"url":"jamsinclair/jSquash/packages/resize","type":"git"},"_npmVersion":"10.5.0","description":"Wasm image resize methods supporting the browser and V8 environments. Repackaged from Squoosh App.","directories":{},"sideEffects":false,"_nodeVersion":"20.12.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/resize_2.0.0_1712030151813_0.40098320509311836","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"@jsquash/resize","version":"2.1.0","keywords":["image","resize","hqx","squoosh","wasm","webassembly","lanczos3","crop","magic-kernel","magic kernel"],"author":{"name":"Jamie Sinclair","email":"jamsinclairnz+npm@gmail.com"},"license":"Apache-2.0","_id":"@jsquash/resize@2.1.0","maintainers":[{"name":"jamsinclair","email":"jamsinclairnz+npm@gmail.com"}],"dist":{"shasum":"af3751e9f4702512d9a03200521c8e69b54ae082","tarball":"https://registry.npmjs.org/@jsquash/resize/-/resize-2.1.0.tgz","fileCount":31,"integrity":"sha512-UxF45pe5a84GrleHichsnGHyFAJhOu4Ms9L1UQYXhhmDifRm4U3pMEzgly+m3xDe+h4XZyDlpr9f8FBB1LZ+LA==","signatures":[{"sig":"MEUCIQD37jG0sIFJ3LydylLbMeiilIcl/Ls1Mkq7JoiNUj0EmwIgafSlODM5FOll5PEPGk31AfJq7plrWxiiSGYxnshKF0E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":252483},"main":"index.js","type":"module","types":"./index.d.ts","gitHead":"201aa03be197d7ff1b90b556bcc84aa80bdfb888","scripts":{"build":"npm run clean && tsc && cp -r lib package.json README.md .npmignore ../../LICENSE dist && (rm dist/lib/*/pkg/package.json dist/lib/*/pkg/.gitignore || true)","clean":"rm -rf dist","prepublishOnly":"[[ \"$PWD\" == *'/dist' ]] && exit 0 || (echo 'Please run npm publish from the dist directory' && exit 1)"},"_npmUser":{"name":"jamsinclair","email":"jamsinclairnz+npm@gmail.com"},"repository":{"url":"jamsinclair/jSquash/packages/resize","type":"git"},"_npmVersion":"10.5.0","description":"Wasm image resize methods supporting the browser and V8 environments. Repackaged from Squoosh App.","directories":{},"sideEffects":false,"_nodeVersion":"20.12.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/resize_2.1.0_1730548324195_0.086850931124683","host":"s3://npm-registry-packages"}},"2.1.1":{"name":"@jsquash/resize","version":"2.1.1","main":"index.js","description":"Wasm image resize methods supporting the browser and V8 environments. Repackaged from Squoosh App.","repository":{"type":"git","url":"jamsinclair/jSquash/packages/resize"},"author":{"name":"Jamie Sinclair","email":"jamsinclairnz+npm@gmail.com"},"keywords":["image","resize","hqx","squoosh","wasm","webassembly","lanczos3","crop","magic-kernel","magic kernel"],"license":"Apache-2.0","scripts":{"clean":"rm -rf dist","build":"npm run clean && tsc && cp -r lib package.json README.md .npmignore ../../LICENSE dist && (rm dist/lib/*/pkg/package.json dist/lib/*/pkg/.gitignore || true)","prepublishOnly":"[[ \"$PWD\" == *'/dist' ]] && exit 0 || (echo 'Please run npm publish from the dist directory' && exit 1)"},"devDependencies":{"typescript":"^4.4.4"},"type":"module","sideEffects":false,"gitHead":"da47a2be3b302beb5a5ae164a2ab7aa21a041d90","types":"./index.d.ts","_id":"@jsquash/resize@2.1.1","_nodeVersion":"24.12.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-0R5UL1ZLHUT+carjVikcE1QfA+kfNQ2YamYyGVRmhfh4zttU5EY3bQBGxPIPtY2xIAw1P4Kgyxm2xrceRw1r2w==","shasum":"f245f1945f12c8c73c313ba3ace58b3f2898c4ff","tarball":"https://registry.npmjs.org/@jsquash/resize/-/resize-2.1.1.tgz","fileCount":31,"unpackedSize":252440,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDDwL1ZdnqadLUpFgV1tmyfwAkyZazIroFu+fdwZIQkPAiEAuUdkUmCDfp8ovVG4+CJxO/Esi0CuMNYAKX9lFIK45vg="}]},"_npmUser":{"name":"jamsinclair","email":"jamsinclairnz+npm@gmail.com"},"directories":{},"maintainers":[{"name":"jamsinclair","email":"jamsinclairnz+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/resize_2.1.1_1767607833684_0.47155072677300436"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-18T03:40:36.371Z","modified":"2026-01-05T10:10:34.062Z","1.0.0":"2021-12-18T03:40:36.657Z","1.0.1":"2021-12-20T02:11:00.453Z","1.1.0":"2023-11-20T10:25:38.239Z","1.1.1":"2023-11-20T15:06:41.165Z","2.0.0":"2024-04-02T03:55:52.010Z","2.1.0":"2024-11-02T11:52:04.425Z","2.1.1":"2026-01-05T10:10:33.859Z"},"author":{"name":"Jamie Sinclair","email":"jamsinclairnz+npm@gmail.com"},"license":"Apache-2.0","keywords":["image","resize","hqx","squoosh","wasm","webassembly","lanczos3","crop","magic-kernel","magic kernel"],"repository":{"type":"git","url":"jamsinclair/jSquash/packages/resize"},"description":"Wasm image resize methods supporting the browser and V8 environments. Repackaged from Squoosh App.","maintainers":[{"name":"jamsinclair","email":"jamsinclairnz+npm@gmail.com"}],"readme":"# @jsquash/resize\n\n[![npm version](https://badge.fury.io/js/@jsquash%2Fresize.svg)](https://badge.fury.io/js/@jsquash%2Fresize)\n\nAn easy experience for resizing images in the browser or V8 environment. Powered by WebAssembly ⚡️ and Rust.\n\nℹ️ You will need to have an already decoded ImageData object to resize. This can be accomplished by using other jSquash modules or using the Canvas API, if available.\n\nUses squoosh's [Resize module](https://github.com/GoogleChromeLabs/squoosh/blob/dev/src/features/processors/resize/worker/resize.ts).\nComposed of:\n- https://github.com/PistonDevelopers/resize\n- https://github.com/CryZe/wasmboy-rs/tree/master/hqx\n\nAddtionally we have added support for the Magic Kernel algorithm for resizing images. This is a Rust implementation of the algorithm.\n- https://github.com/SevInf/magic-kernel-rust\n\nA [jSquash](https://github.com/jamsinclair/jSquash) package. Codecs and supporting code derived from the [Squoosh](https://github.com/GoogleChromeLabs/squoosh) app.\n\n## Installation\n\n```shell\nnpm install --save @jsquash/resize\n# Or your favourite package manager alternative\n```\n\n## Usage\n\nNote: You will need to either manually include the wasm files from the codec directory or use a bundler like WebPack or Rollup to include them in your app/server.\n\n### resize(data: ImageData, options: ResizeOptions): Promise<ImageData>\n\nResizes an ImageData object to the specified dimensions.\n\n#### data\nType: `ImageData`\n\n#### options\nType: `Partial<ResizeOptions> & { width: number, height: number }`\n\nThe resize options for the output image. [See default values](./meta.ts).\n- `width` (number) the width to resize the image to \n- `height` (number) the height to resize the image to\n- `method?` (`'triangle'` | `'catrom'` | `'mitchell'` | `'lanczos3'` | `'hqx'` | `'magicKernel'` | `'magicKernelSharp2013'` | `'magicKernelSharp2021'`) the algorithm used to resize the image. Defaults to `lanczos3`.\n- `fitMethod?` (`'stretch'` | `'contain'`) whether the image is stretched to fit the dimensions or cropped. Defaults to `stretch`.\n- `premultiply?` (boolean) Defaults to `true`\n- `linearRGB?` (boolean) Defaults to `true`\n\n\n#### Example\n```js\nimport { decode } from '@jsquash/jpeg';\nimport resize from '@jsquash/resize';\n\nconst imageBuffer = fetch('/images/example.jpg').then(res => res.arrayBuffer());\nconst originalImageData = await decode(imageBuffer);\nconst resizedImageData = await resize(originalImageData, { height: 300, width: 400 };\n```\n\n## Manual WASM initialisation (not recommended)\n\nIn most situations there is no need to manually initialise the provided WebAssembly modules.\nThe generated glue code takes care of this and supports most web bundlers.\n\nOne situation where this arises is when using the modules in Cloudflare Workers ([See the README for more info](/README.md#usage-in-cloudflare-workers)).\n\nThe main module exports `initHqx` and `initResize` functions that can be used to manually load their respective wasm module.\n\n```js\nimport resize, { initResize } from '@jsquash/resize';\n\ninitResize(WASM_MODULE); // The `WASM_MODULE` variable will need to be sourced by yourself and passed as an ArrayBuffer.\n\nresize(image, options);\n\n// Optionally if you know you are using the hqx method or magicKernel method you can also initialise those modules\nimport { initHqx, initMagicKernel } from '@jsquash/resize';\n\ninitHqx(HQX_WASM_MODULE);\ninitMagicKernel(MAGIC_KERNEL_WASM_MODULE);\n```\n","readmeFilename":"README.md"}