Generated by npm run imagetools:wasm (scripts/copy-imagetools-wasm.mjs).
Do not hand-edit; re-run the script after upgrading a codec package.
| Codec dir | npm package | version | files |
|---|---|---|---|
| jpeg | @jsquash/jpeg |
1.6.0 | mozjpeg_dec.wasm (163 KB) mozjpeg_enc.wasm (246 KB) |
| png | @jsquash/png |
3.1.1 | squoosh_png_bg.wasm (177 KB) |
| webp | @jsquash/webp |
1.5.0 | webp_dec.wasm (135 KB) webp_enc.wasm (275 KB) webp_enc_simd.wasm (337 KB) |
| avif | @jsquash/avif |
2.1.1 | avif_dec.wasm (1143 KB) avif_enc.wasm (3404 KB) |
| jxl | @jsquash/jxl |
1.3.0 | jxl_dec.wasm (829 KB) |
| oxipng | @jsquash/oxipng |
2.3.0 | squoosh_oxipng_bg.wasm (160 KB) |
| resize | @jsquash/resize |
2.1.1 | squoosh_resize_bg.wasm (34 KB) |
| heic | heic-to |
1.5.2 | heic-to.min.js (CSP ESM build, libheif wasm embedded) (2925 KB) |
| cropper | cropperjs |
1.6.2 | cropper.min.js (36 KB) cropper.min.css (4 KB) |
| ort | onnxruntime-web |
1.27.0 | ort.wasm.min.mjs (49 KB) ort-wasm-simd-threaded.mjs (24 KB) ort-wasm-simd-threaded.wasm (13164 KB) |
Total vendored: 22.56 MB across 17 files.
heic-to cannot run in the worker (DOM dependency; libheif is base64-embedded, no standalone .wasm). The page lazy-imports the vendored CSP ESM build BY URL on the main thread only when a HEIC file shows up, then hands the worker decoded pixels or a JPEG buffer.cropperjs (v1 classic UMD build, window.Cropper) powers the main-thread Crop mode. The page injects cropper.min.css and cropper.min.js BY URL the first time Crop is opened, computes the crop at full native resolution, and sends the cropped RGBA to the worker as a normal op:convert decoded job.ort/ files power the "Remove background" mode. imagetools-bgworker.js (a module worker) dynamic-imports ort.wasm.min.mjs BY URL, sets ort.env.wasm.wasmPaths to the ort/ directory (so the runtime fetches the emscripten glue ort-wasm-simd-threaded.mjs and the ort-wasm-simd-threaded.wasm binary from there), forces numThreads = 1 + simd = true, then loads the BRIA RMBG-1.4 quantized model from R2 (https://i.cachesleuth.com/models/rmbg-1.4/model_quantized.onnx).wasmPaths accepts a same-origin directory or an absolute URL, so if ort-wasm-simd-threaded.wasm ever exceeds the 24 MiB Pages limit it can be moved to https://i.cachesleuth.com/models/ort/ and the bgworker constant repointed with no code change.