potrace-wasm
v1.0.4
Published
Potrace Porting in Web Assembly
Downloads
177
Readme
potrace-wasm
Potrace Porting in Web Assembly.
Example
Usage
Add potrace-wasm dependency
npm install potrace-wasm
Call the helper methods
import { loadFromCanvas } from "potrace-wasm";
loadFromCanvas(imgCanvas)
.then(svg => drawSVG(svg))
.catch(err => console.log(err));
Build
Install emsdk
Build the wasm and js
./build.sh
License
The GNU General Public License version 2 (GPLv2).