@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]
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.
The hosted service
vectorize.dudko.dev runs the same core in a
browser, with the file never leaving the tab — worth a look before installing
anything. For a pipeline that is not this command, the HTTP API is at
vectorize.dudko.dev/api and an MCP endpoint
for assistants at https://vectorize.dudko.dev/mcp; both need a free account at
auth.dudko.dev.
A paid account carries commercial permission for that service, not for this package: running the software yourself is the written licence above.
Documents rather than pictures: pdf2md.dudko.dev,
with @dudko.dev/pdf-to-md-cli
on the command line.
Install
npm i -g @dudko.dev/vectorize-cli
Use
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 --help
Presets (-p, --preset) are logo (flat marks, icons, UI), clipart (drawn
artwork, brush strokes, stickers), photo, sketch (greyscale drawings, six
grey levels), bw (line art and scans, black and white), pixel (pixel art:
every pixel a square, every colour exact) and stamp (a stamp, a signature or
handwriting: one ink in its own colour, the paper transparent); poster is the
old name of logo and still works. --detail low|medium|high keeps fewer, larger
shapes or more of the picture. -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.