@dudko.dev/vectorize-cli
v0.4.13
Published
Command-line raster → SVG converter
Readme
@dudko.dev/vectorize-cli
Command-line raster → vector conversion. Wraps
@dudko.dev/vectorize-core:
the Rust tracing core compiled to WebAssembly, with SVG, PDF, EPS and DXF output.
Licence — read this before you install it
Free, with no time limit, for noncommercial use under the
PolyForm Noncommercial License 1.0.0, whose full text is LICENSE in this
package: personal study, research, experiment, hobby
projects and amateur pursuits, plus use by charities, educational institutions,
public research bodies, public safety and health organizations, environmental
organizations and government institutions.
32 days to evaluate it at work, under
PolyForm Free Trial 1.0.0, whose full text is LICENSE-FREE-TRIAL in this
package,
granted alongside the above — for trying it, not for redistributing it.
Anything else commercial needs a written licence, including running it inside a product or service offered to third parties for a fee, and a company's own internal business use. Ask: [email protected]
A hosted API is planned at vectorize-api.dudko.dev, where a paid account will
carry commercial permission for use of that service. Accounts are not open yet.
Your rights to this package come from LICENSE and, for commercial use, from a
written agreement with the copyright holder. No web page grants them — not this
project's, and not anyone else's — so nothing published at any address can widen
or narrow what LICENSE says.
The WebAssembly modules come from @dudko.dev/vectorize-core, whose
THIRD-PARTY-NOTICES.md carries the notices for the Rust crates linked into
them.
Install
npm i -g @dudko.dev/vectorize-cliUse
vectorize logo.png -o logo.svg
vectorize photo.jpg --preset photo --colors 16 --format pdf --dpi 300 -o photo.pdf
vectorize scan.png --preset bw --adaptive --centerline -o scan.dxf
vectorize --helpPresets (-p, --preset) are photo, poster (flat colour graphics and logos)
and bw (line art and scans). -f, --format takes svg, pdf, eps or
dxf, and --json prints the run's statistics to stdout alongside whichever of
those you wrote. The rest of the tracer's options — --colors, --denoise,
--corner, --curve, --gap-fill, --gradient-tolerance and the others — are
listed by --help.
