openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > Trace To Svg

Trace bitmap images (PNG/JPG/WebP) into clean SVG paths using potrace/mkbitmap. Use to convert logos/silhouettes into vectors for downstream CAD workflows (e.g., create-dxf etch_svg_path) and for turning reference images into manufacturable outlines.

媒体与内容

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v0.1.0

统计:⭐ 1 · 1.8k · 2 current installs · 2 all-time installs

1

安装量(当前) 2

🛡 VirusTotal :良性 · OpenClaw :良性

Package:ajmwagar/trace-to-svg

安全扫描(ClawHub)

  • VirusTotal :良性
  • OpenClaw :良性

OpenClaw 评估

The skill's code, runtime instructions, and install requirements align with its stated purpose (bitmap → SVG tracing) and request no unrelated credentials or system access.

目的

The skill is a simple wrapper around mkbitmap + potrace. The declared required binaries (potrace, mkbitmap), apt/brew install entries (potrace), and the included script all match the stated purpose of converting bitmaps to SVG.

说明范围

SKILL.md and the script only instruct running mkbitmap and potrace on a provided input file, producing an output SVG in a specified path. The script checks for required binaries, uses a temporary directory, and does not read other system files, environment variables, or transmit data externally.

安装机制

Installers use standard package managers (apt and brew) to install potrace, which is expected and low risk. There are no downloads from arbitrary URLs or archive extraction steps.

证书

The skill declares no environment variables or credentials and the runtime script does not access secrets or unrelated env vars. Required permissions are only filesystem read/write for files you pass.

持久

The skill is not set to always:true and does not modify system or agent-wide configuration. It has normal, non-persistent presence and requires explicit invocation to run.

综合结论

This skill appears coherent and low-risk: it runs local binaries (mkbitmap, potrace) on files you provide and writes an SVG output. Before installing, confirm you trust the source of the potrace package (apt/brew are standard), run the included script manually on a test image to verify behavior, and avoid passing sensitive files you don't want processed. If you deploy in a multi-user or cloud environment, ensure the agent has only the filesyst…

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Trace To Svg」。简介:Trace bitmap images (PNG/JPG/WebP) into clean SVG paths using potrace/mkbitmap.…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/ajmwagar/trace-to-svg/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: trace-to-svg
description: Trace bitmap images (PNG/JPG/WebP) into clean SVG paths using potrace/mkbitmap. Use to convert logos/silhouettes into vectors for downstream CAD workflows (e.g., create-dxf etch_svg_path) and for turning reference images into manufacturable outlines.
metadata:
  openclaw:
    requires:
      bins: ["potrace", "mkbitmap"]
    install:
      - id: apt
        kind: apt
        package: potrace
        bins: ["potrace", "mkbitmap"]
        label: Install potrace + mkbitmap (apt)
      - id: brew
        kind: brew
        formula: potrace
        bins: ["potrace", "mkbitmap"]
        label: Install potrace + mkbitmap (brew)
---

# trace-to-svg

Convert a bitmap into a vector SVG using `mkbitmap` + `potrace`.

## Quick start

```bash
# 1) Produce a silhouette-friendly SVG
bash scripts/trace_to_svg.sh input.png --out out.svg

# 2) Higher contrast + less noise
bash scripts/trace_to_svg.sh input.png --out out.svg --threshold 0.6 --turdsize 20

# 3) Feed into create-dxf (example)
# - set create-dxf drawing.etch_svg_paths[].d to the SVG path `d` you want, or
# - store the traced SVG and reference it in your pipeline.
```

## Notes

- This is best for **logos, silhouettes, high-contrast shapes**.
- For photos or complex shading, results depend heavily on thresholding.
- Output is usually one or more `<path>` elements.