dxf-to-image
by qrost
Image & Video GenerationBrief
Convert DXF to PNG, JPG, or SVG for sharing (e.g.
Description
What This Skill Does
Converts DXF files from CAD tools like Rhino or map-grabber to PNG, JPG, or SVG. Supports custom output dimensions, DPI, and margin settings. Output files can be sent in chat or used for further editing.
Converts DXF files directly in the OpenClaw conversation without switching to a CAD application or online converter.
When to Use It
- Sharing a Rhino CAD drawing as a PNG in chat
- Converting a map-grabber DXF export to a raster image
- Exporting a site plan as SVG for vector editing
- Generating a fixed-width PNG from a DXF for a report
- Sending a DXF floor plan as JPG to a client
Example Workflow
User asks: Convert this DXF to PNG so I can send it in Telegram.
- 1
Identify the DXF file path from the user's message
- 2
Run convert_dxf.py with the input path and output set to /tmp/out.png
- 3
Send the generated PNG to the user via the OpenClaw media tool
PNG image delivered in the chat
Requirements
- Run `pip install -r requirements.txt` in the skill folder after install (provides ezdxf, matplotlib, and Pillow)
Installation
clawhub install qrost/dxf-to-imageRun the CLI command, or paste the prompt into Claude Code, Cursor, Codex or whichever coding agent you use.