Skip to main content

Function: imageToSvg()

imageToSvg(options): Promise<SvgResult>

Defined in: safeWasmWrappers.js:265

Parameters​

options​

ImageToSvgOptions

The input options.

Returns​

Promise<SvgResult>

Generated SVG.

Description​

Convert an input raster image into an SVG. A unification of bilateralFilter, kmeans, and findContours.

Async​

imageToSvg

Throws​

If the WASM function fails or input labels are invalid.

Example​

const { svg } = await imageToSvg({ pixels, width, height });

Variation​

Convert a raster image (e.g., PNG, JPG) into an SVG.

Since​

0.0.0