{"repo":"neplextech/vectorizer","free":true,"listed":false,"github":"https://github.com/neplextech/vectorizer","clone":"git clone https://github.com/neplextech/vectorizer.git","description":"Fast JavaScript library to convert and optimize raster images to svg using vtracer","language":"Rust","stars":209,"topics":["api","img2svg","nodejs","png-to-svg","raster-to-vector","svg-creator","vector-graphics","napi-rs","rust","image-to-svg"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"@neplex/vectorizer Node.js library to convert raster images to svg using VTracer, with time complexity of O(n) . [!TIP] Browser example: See twlite/vectorizer-playground for a complete browser example. Due to current WASI limitations in browsers, the async APIs may not work. The synchronous APIs work correctly when executed inside a Web Worker, which is covered by the example. CLI Optimize while vectorizing: Optimize an existing SVG: Use --help to see all available options. Installation Usage The generated SVG string is generally quite large, so it's recommended to optimize it before use. See the SVG Optimization section for more details. If you want to use a synchronous API, you can use vectorizeSync instead. See the API section for more details on available functions and options. Benchmark See benchmark for more details. API vectorize(data: Buffer, config?: Config Preset, signal?: AbortSignal): Promise Takes an image buffer and returns a promise that resolves to an SVG string. vectorizeSync(data: Buffer, config?: Config Preset): string Takes an image buffer and returns an SVG string synchronously. vectorizeRaw(data: Buffer, args: RawDataConfig, config?: Config Preset, signal?: AbortSignal): Promise Takes a raw pixel data buffer and returns a promise that resolves to an SVG string. vectorizeRawSync(data: Buffer, args: RawDataConfig, config?: Config Preset): string Takes a raw pixel data buffer and returns an SVG string synchronously. vectorizeToCallback(data: Buffer, config:","default_branch":null,"files":null,"tree":[],"storefront":"/r/neplextech","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/neplextech/vectorizer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}