1.0.4 • Published 4 years ago

potrace-wasm v1.0.4

Weekly downloads
4
License
GPL-2.0
Repository
github
Last release
4 years ago

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(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).

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago