potrace-wasm

1.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i potrace-wasm

Weekly Downloads

17

Version

1.0.4

License

GPL-2.0

Unpacked Size

300 kB

Total Files

4

Last publish

Collaborators

  • deepq-group