← ClaudeAtlas

svg-to-pnglisted

Converts a single SVG file into a PNG using the `rsvg-convert` command-line tool. Use when the user asks to render, export, rasterize, or convert an SVG to a PNG image — typically for embedding diagrams in places that don't support inline SVG (Medium, slide decks, documents). Requires `rsvg-convert` (librsvg) installed on the host. Do not use for generating new SVG content, batch conversion of folders, or other image formats.
bgorkem/bgorkem-skills · ★ 4 · Data & Documents · score 75
Install: claude install-skill bgorkem/bgorkem-skills
# SVG to PNG Convert a single SVG file to a PNG using `rsvg-convert`. Produces a high-resolution raster suitable for platforms that don't render SVG inline (Medium, Notion, slide decks, social posts). The default render width is **1600px**, chosen as a sensible 2× density for Medium's ~700px content column. Override when the destination calls for something different. ## When to use Trigger on any of: - "Convert `<file>.svg` to png" - "Render this svg as a png" - "Export the diagram as png for Medium" - "Make a png version of `<file>.svg`" If the user asks to convert *multiple* SVGs at once, or to convert a folder of SVGs, this skill is **not** the right fit — it deliberately handles one file per call. Either run it once per file, or tell the user that batch conversion isn't supported by this skill and offer to do them one at a time. If the user asks to convert to JPEG, WebP, PDF, or any non-PNG format, this skill isn't the right fit — say so and suggest `rsvg-convert -f <format>` directly (it supports `pdf`, `ps`, `eps`, but **not** JPEG/WebP — for those they'd need ImageMagick). ## Requirements - `rsvg-convert` must be installed and on the system PATH. Install methods: - macOS: `brew install librsvg` - Ubuntu/Debian/Raspberry Pi OS: `sudo apt install librsvg2-bin` - Verify with: `rsvg-convert --version` If `rsvg-convert` is missing, stop and tell the user how to install it for their platform — don't fall back to ImageMagick or other tools, because their SVG r