@dudko.dev/vectorize-cli

中文文档
0.6.11发布于 2026/11/02PolyForm-Noncommercial-1.0.0ES Module近 30 天下载 2112

Command-line raster → SVG converter

原始使用文档
文档目录4 节
  1. Licence — read this before you install it
  2. The hosted service
  3. Install
  4. Use

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

版本与发布记录

@dudko.dev/vectorize-cli 共发布 35 个版本,首次发布于 2026/09/04;过去 12 个月发布了 35 个版本。

版本发布日期距今
0.6.11latest2026/11/0212 天前
0.6.102026/11/0212 天前
0.6.92026/11/0212 天前
0.6.82026/11/0212 天前
0.6.72026/10/2717 天前
0.6.62026/10/2718 天前

关于 @dudko.dev/vectorize-cli 的常见问题

@dudko.dev/vectorize-cli 是什么?

Command-line raster → SVG converter

如何安装 @dudko.dev/vectorize-cli?

在项目目录运行 npm install @dudko.dev/vectorize-cli,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 vectorize,可以用 npx vectorize 直接运行。

@dudko.dev/vectorize-cli 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/dudko.dev__vectorize-cli 是否存在。

@dudko.dev/vectorize-cli 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@dudko.dev/vectorize-cli 可以商用吗?

@dudko.dev/vectorize-cli 使用 PolyForm-Noncommercial-1.0.0 许可。声明的许可为 PolyForm-Noncommercial-1.0.0,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@dudko.dev/vectorize-cli 的下载量有多少?

根据 npm 官方下载统计,@dudko.dev/vectorize-cli 在 2026/10/13 – 2026/11/11 这 30 天内被下载 2,112 次,日均约 70 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@dudko.dev/vectorize-cli 还在维护吗?

最新版本 0.6.11 发布于 2026/11/02(12 天前);至今共发布 35 个版本,其中过去 12 个月发布了 35 个;首次发布于 2026/09/04。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。