/potrace-wasm

Potrace Porting in Web Assembly

Primary LanguageJavaScriptGNU General Public License v2.0GPL-2.0

potrace-wasm

Potrace Porting in Web Assembly.

Online Demo

Example

image image

Usage

Add potrace-wasm dependency

npm install potrace-wasm

Call the helper methods

import { loadFromCanvas } from "potrace-wasm";

loadFromCanvas(canvas, config)
    .then(svg => drawSVG(svg))
    .catch(err => console.log(err));

Build from source

Install emsdk

Build the wasm and js

npm run build

License

The GNU General Public License version 2 (GPLv2).