lov-png2svg SKILL.md skillA
lov-png2svg from lovstudio/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add lovstudio/skills/lov-png2svg@v1.1.1Pins v1.1.1 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- lovstudio/skills
- Path
skills/png2svg/SKILL.md- Versions recorded
- 6
- Latest version
- v1.1.1, committed Sep 25, 2026
- First version recorded
- Aug 9, 2026
- Size
- 3,936 bytes
- Repository stars
- 72
- License
- MIT
Convert PNG images to high-quality SVG with optional white-background removal, vtracer spline vectorization, and svgo compression. Use when the user asks for "PNG to SVG", "png2svg", "转 SVG", "矢量化", "去白底", logo tracing, or converting raster icons into editable vector assets.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 矢量描摹 · Vector Tracer
将 PNG 图片转换为高质量矢量 SVG,支持去除白色背景。
## 工具链
```
PNG → magick (去白底+alpha阈值) → vtracer (样条曲线) → svgo (压缩) → SVG
```
- **ImageMagick** (`magick`): 去除白色背景 + alpha 阈值处理
- **vtracer**: 样条曲线矢量化(比 potrace 更平滑)
- **svgo**: SVG 路径压缩优化
## 调用方式
当需要将 PNG 转换为 SVG 时,按以下步骤执行:
### 输入
- `INPUT_PNG`: 输入 PNG 文件路径(必需)
- `OUTPUT_SVG`: 输出 SVG 路径(默认:同名 .svg)
- `KEEP_BG`: 是否保留背景(默认:false,去除白色背景)
### 执行步骤
#### Step 1: 预处理(去白底)
如果需要去除背景(KEEP_BG=false):
```bash
magick INPUT_PNG \
-fuzz 15% -transparent white \
-channel A -threshold 50% +channel \
INPUT_PNG.temp.png
```
#### Step 2: 矢量化
```bash
vtracer --input INPUT_PNG.temp.png --output OUTPUT_SVG \
--mode spline \
--filter_speckle 8 \
--color_precision 8 \
--corner_threshold 120 \
--segment_length 6 \
--path_precision 5
```
#### Step 3: 压缩优化
```bash
npx svgo OUTPUT_SVG -o OUTPUT_SVG --multipass
```
#### Step 4: 清理
```bash
rm -f INPUT_PNG.temp.png
```
### 输出
返回生成的 SVG 文件路径,并报告文件大小。
```
✓ PNG → SVG 转换完成
输入: {INPUT_PNG}
输出: {OUTPUT_SVG}
大小: {file_size}
```
## 依赖
首次使用前确保已安装:
```bash
brew install imagemagick
cargo install vtracer
npm install -g svgo # 或使用 npx
```
## 参数调优
| 参数 | 作用 | 调大效果 |
…Read the whole file at its exact version.
How to install
mdr add lovstudio/skills/lov-png2svg@sha256:24adbc9c9a78dec1The line at the top of this page pins the label v1.1.1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_b7fmrobbdniscmrk)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 6 versions of this file, between Aug 9, 2026 and Sep 25, 2026, about one every 9 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v1.1.1 latest | 2026-09-25 | 4b67fd1 | 3,936 B | A | view · diff |
| v1.1.0 | 2026-09-07 | a09848e | 3,936 B | A | view · diff |
| v1.1.0 | 2026-08-23 | 00fafa8 | 3,923 B | A | view · diff |
| v1.0.1 | 2026-08-10 | d704a55 | 3,201 B | A | view · diff |
| v1.0.1 | 2026-08-10 | 22e49cf | 2,574 B | A | view · diff |
| v1.0.1 | 2026-08-09 | a4179a1 | 2,574 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3936 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
lovstudio/skills · 72 stars · license MIT · pushed 2026-11-06 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_b7fmrobbdniscmrk GET https://markdownregistry.com/api/v1/resolve?ref=lovstudio/skills/lov-png2svg GET https://markdownregistry.com/api/v1/blob/24adbc9c9a78dec14bc0a92e26e347a50203cfc154a194ddcb0b5168f8e32028
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.