Img2Num JavaScript
What is Img2Num?
Img2Num is a high-performance raster-to-vector conversion library that transforms images into SVGs. It is powered by WebAssembly (WASM) for speed, while providing easy-to-use JavaScript wrappers for integration into web or Node.js projects.
Features
- Fast raster vectorization with WASM backend.
- Typed array support: Works with
Uint8Array,Uint8ClampedArray, andInt32Array. - String outputs: Converts results directly into SVG strings.
- Worker-friendly: Supports offloading heavy computations to Web Workers.
- Zero dependencies: Pure WASM + JS with no external libraries required.
Resources
- HTML demo app (low-code)
- Node.js console demo app (low-code)
- React.js demo app
License
The JavaScript package is licensed under the following: