{"slug":"dwg2png","title":"dwg2png","summary":"Render DWG, DXF and SVG drawings to PNG previews, vector SVG pages and tiles, extract native text with pixel positions, and build a searchable metadata index. Use for AutoCAD files, SVG blueprints, CAD drawing previews, text extraction, or drawing ingestion for RAG, search and vi","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-12-03T18:25:26.141673Z","repo":{"url":"https://github.com/aileron-tech/dwg2png","stars":17,"forks":2,"license":null,"updatedAt":"2026-11-24T13:28:50Z"},"bodyHtml":"<h1>dwg2png Skill</h1>\n<blockquote>\n<p><strong>Install:</strong> <code>npx skills add https://github.com/aileron-tech/dwg2png --skill dwg2png</code> | <a href=\"https://skills.sh\">skills.sh</a></p>\n<p>Ships in the <a href=\"https://github.com/aileron-tech/dwg2png\"><code>aileron-tech/dwg2png</code></a> tool repo under <code>skill/</code>.</p>\n</blockquote>\n<p><strong>Drawing ingestion for AI applications.</strong> Turn AutoCAD <strong>DWG</strong> and <strong>DXF</strong>\nfiles or <strong>SVG</strong> drawings into PNG previews, vector SVG pages, readable tiles, native text with\npixel positions, and a metadata index for RAG, search and vision models.\nThe tool runs offline on the CPU.</p>\n<hr>\n<h2>Scope &amp; Purpose</h2>\n<p>This skill helps an agent run the <code>dwg2png</code> tool and consume its output:</p>\n<ul>\n<li>Render each DWG or DXF layout, or the single SVG canvas, to PNG</li>\n<li>Emit a text layer: every label as <strong>exact text + pixel box</strong> (no OCR)</li>\n<li>Emit readable tiles so a VLM can read labels visually</li>\n<li>Extract a per-file index: layers, blocks, title-block attributes, entity histogram</li>\n<li>Wire the output into RAG / multimodal pipelines</li>\n</ul>\n<hr>\n<h2>When to Use This Skill</h2>\n<p><strong>Triggers:</strong></p>\n<ul>\n<li>DWG, DXF, and SVG drawings and blueprints</li>\n<li>\"DWG to PNG\", rendering or previewing CAD drawings</li>\n<li>Extracting text / labels / title-block attributes from CAD</li>\n<li>Building a RAG or multimodal pipeline over CAD drawings</li>\n<li>Running the <code>dwg2png</code> CLI or Docker image</li>\n</ul>\n<p><strong>Use cases:</strong></p>\n<ul>\n<li>Convert a folder of drawings into page previews + tiles for review</li>\n<li>Pull exact label text + positions out of a drawing (no OCR)</li>\n<li>Index title-block attributes (IDs, areas, etc.) and layer/block inventory</li>\n<li>Feed drawings into a retrieval chain with grounded citations</li>\n</ul>\n<hr>\n<h2>Quick Reference</h2>\n<h3>Get the tool</h3>\n<pre><code># Docker (self-contained; bundles a font)\ngit clone https://github.com/aileron-tech/dwg2png &amp;&amp; cd dwg2png\ndocker build -t dwg2png:latest .\n\n# or a prebuilt binary (macOS arm64/x64, Linux x64, Windows x64)\ngh release download --repo aileron-tech/dwg2png --pattern '*linux*'\n</code></pre>\n<h3>Run</h3>\n<pre><code>dwg2png input/ --out out --size 6000 --tiles --svg --no-compare\n</code></pre>\n<h3>Output (<code>out/</code>)</h3>\n<pre><code>img/fNN-pMM.png        page previews (p00 = Model space)\ntiles/fNN-pMM/...      readable crops + tiles.json (per-tile labels)\nlabels/fNN-pMM.json    text layer: exact strings + pixel x,y,w,h + layer + color\njson/fNN.json          index: layers, blocks, attributes, histogram\nreport.html            self-contained report (toggleable text overlay)\n</code></pre>\n<hr>\n<h2>Skill Structure</h2>\n<pre><code>dwg2png/\n  SKILL.md                     # workflow: get / run / consume output\n  README.md                    # this file (overview)\n  references/\n    cli.md                     # full CLI flags, invocations, perf\n    outputs.md                 # labels / index / tile-manifest schemas\n    rag.md                     # RAG + multimodal integration patterns\n  scripts/\n    labels_to_chunks.py        # cluster the text layer into embed-ready chunks\n</code></pre>\n<hr>\n<h2>RAG in one step</h2>\n<pre><code>python3 scripts/labels_to_chunks.py out/labels --out chunks.jsonl\n# -&gt; {\"text\": \"...\", \"metadata\": {\"file\",\"page\",\"layer\",\"bbox\",\"n_labels\"}}\n</code></pre>\n<p>Embed <code>text</code>; keep <code>metadata</code> for filtering and grounded citations. Pair with the\n<code>tiles/*.png</code> crops for multimodal answers. See\n<a href=\"references/rag.md\">references/rag.md</a>.</p>\n<hr>\n<h2>Requirements</h2>\n<ul>\n<li>Image ~81 MB; binary ~2.3 MB; no GPU / C libraries.</li>\n<li>Typical DWG (≤1 MB): ~1–2 s, 200–450 MB RAM. Large 40–50 MB drawings:\n~25–30 s, ~2.8 GB RAM (parser-bound) — route to a high-memory queue.</li>\n<li>One DWG per invocation; scale out with parallel workers.</li>\n</ul>\n<hr>\n<h2>Resources</h2>\n<ul>\n<li><strong>Full workflow</strong>: <a href=\"SKILL.md\">SKILL.md</a></li>\n<li><strong>CLI reference</strong>: <a href=\"references/cli.md\">references/cli.md</a></li>\n<li><strong>Output schemas</strong>: <a href=\"references/outputs.md\">references/outputs.md</a></li>\n<li><strong>RAG integration</strong>: <a href=\"references/rag.md\">references/rag.md</a></li>\n<li><strong>Source</strong>: <a href=\"https://github.com/aileron-tech/dwg2png\">https://github.com/aileron-tech/dwg2png</a></li>\n</ul>\n<hr>\n<h2>License</h2>\n<p>MPL-2.0</p>\n","files":[{"path":"README.md","sizeBytes":3797,"isText":true},{"path":"references/cli.md","sizeBytes":2740,"isText":true},{"path":"references/outputs.md","sizeBytes":3293,"isText":true},{"path":"references/rag.md","sizeBytes":2841,"isText":true},{"path":"scripts/labels_to_chunks.py","sizeBytes":4966,"isText":true},{"path":"SKILL.md","sizeBytes":4787,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-12-03T18:26:11.617065Z","sha256":"756D8550EE765D3F25480DBC3C109B402EA16DF40653662552AA1AAA74A2B976","sizeBytes":11182},"review":null,"source":{"repositoryUrl":"https://github.com/aileron-tech/dwg2png","path":"skill","license":null,"commit":"6d3785f7a7d7376f2640f4b502cab4a54ed27350","subtreeSha":"7D7428F864F1A1A4541E67EA03897D29B810F8C3AF04AD4624649CF038B87814","lastSyncedAt":"2026-12-03T18:25:26.136619Z"},"reviewedAt":"2026-12-03T18:28:35.035021Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/aileron-tech/dwg2png/tree/main/skill"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install aileron-tech-dwg2png@llmmart"},{"target":"git","command":"git clone https://github.com/aileron-tech/dwg2png.git"}]}