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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/ajmwagar/trace-to-svgWhat This Skill Does
The trace-to-svg skill is a powerful image processing utility designed to convert bitmap formats (PNG, JPG, WebP) into scalable vector graphics (SVG). By leveraging the industry-standard potrace and mkbitmap tools, this skill transforms raster-based images into clean, geometric path data. This process effectively converts pixel-based silhouettes, logos, or line art into mathematical vector shapes. These SVG outputs are essential for workflows requiring precision, such as CAD design, laser cutting, CNC machining, or simply scaling imagery without resolution loss. When triggered, the skill processes the input image, optimizes the high-contrast threshold, and removes unwanted noise artifacts to generate a precise d attribute path that can be integrated into broader manufacturing pipelines like create-dxf.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/ajmwagar/trace-to-svg
Ensure that you have the underlying potrace and mkbitmap binary dependencies installed on your host system, as this skill acts as a high-level wrapper to orchestrate these utilities.
Use Cases
- Logo Vectorization: Transform low-resolution pixelated company logos into clean, high-fidelity SVGs suitable for print and large-scale signage.
- Manufacturing & CAD: Convert simple sketches or silhouettes into DXF-ready paths to etch or cut using automated CNC or laser engraving machinery.
- Graphic Restoration: Clean up scanned physical documents or hand-drawn sketches to create digital assets that can be easily edited in tools like Illustrator or Inkscape.
- Reference Tracing: Generate SVG outlines from complex imagery to use as blueprints for 3D modeling or additive manufacturing tasks.
Example Prompts
- "Trace the logo found in
company_logo.pngand output the result tovector_logo.svgusing default settings." - "I need to convert
sketch.jpgto an SVG. Please apply a threshold of 0.7 to ensure all lines are picked up and set the turdsize to 25 to remove small dots." - "Take the silhouette image at
path/to/icon.pngand convert it to an SVG path so I can pass it to thecreate-dxfskill for my upcoming etching job."
Tips & Limitations
- Performance: This skill performs best with high-contrast, black-and-white, or grayscale source images. Color photos often require pre-processing (desaturation or thresholding) to achieve desirable results.
- Tuning: Use the
--thresholdflag to manage how the tool perceives 'light' versus 'dark' pixels. If your output is too grainy or has 'pepper' noise, increase the--turdsizeparameter to ignore smaller isolated pixel clusters. - Limitations: This is not an automated 'Image-to-Vector' magic wand for complex photography; complex gradients or photo-realistic textures will likely produce messy, unusable paths. Always check your output SVG nodes after conversion if using them for high-precision CNC work.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-ajmwagar-trace-to-svg": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write, code-execution
Related Skills
create-dxf
Create RFQ-ready 2D DXF (and optional SVG preview) files from a strict, validated JSON spec derived from a natural-language design prompt. Use for sheet/plate parts (waterjet/laser/router) like mounting plates, gussets, brackets, hole patterns, and slots.
find-stl
Search and download ready-to-print 3D model files (STL/3MF/ZIP) for a concept or specific part by querying Printables (first). Use when an agent needs to find an existing model, capture license/attribution, download the source files, and output a local folder + manifest for quoting/printing.
image-to-relief-stl
Turn a source image (or multi-color mask image) into a 3D-printable bas-relief STL by mapping colors (or grayscale) to heights. Use when you have an image from an image-gen skill (nano-banana-pro, etc.) and want a real, printable model (STL) via a deterministic pipeline.
Render Stl Png
Skill by ajmwagar
netlify
Use the Netlify CLI (netlify) to create/link Netlify sites and set up CI/CD (continuous deployment) from GitHub, especially for monorepos (multiple sites in one repo like Hugo sites under sites/<domain>). Use when Avery asks to deploy a new site, connect a repo to Netlify, configure build/publish settings, set environment variables, enable deploy previews, or automate Netlify site creation.