Potrace Porting in Web Assembly
npm install potrace-wasm[Potrace][potrace] Porting in Web Assembly.
[Online Demo][demo]
Add potrace-wasm dependency
``sh`
npm install potrace-wasm
Call the helper methods
`sh
import { loadFromCanvas } from "potrace-wasm";
loadFromCanvas(imgCanvas)
.then(svg => drawSVG(svg))
.catch(err => console.log(err));
`
Install [emsdk][emsdk]
Build the wasm and js
`sh``
./build.sh
The GNU General Public License version 2 (GPLv2).
[potrace]: http://potrace.sourceforge.net/
[demo]: https://igutechung.github.io/
[emsdk]: https://emscripten.org/docs/getting_started/downloads.html