svg-to-png

svg-to-png is a skill for Claude Code from bgorkem/bgorkem-skills. It costs 103 tokens per session (2,530 once invoked), scanned B, original, MIT.

A command-line tool that turns one SVG image into a PNG image. SVG is a scalable vector format, while PNG is a widely supported raster image format.

In plain words
What is it for?
Rendering or exporting a single SVG as a PNG, normally at 1600 pixels wide. It requires the rsvg-convert program and does not handle batch conversion or non-PNG output.
Why use it?
It helps when a destination cannot display inline SVG files, such as some documents, slide decks, or publishing platforms. It can render the image at a chosen width.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the image-transform plugin — 1 skill shipped together

Good fit Rendering or exporting a single SVG as a PNG, normally at 1600 pixels wide. It requires the rsvg-convert program and does not handle batch conversion or non-PNG output.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bgorkem/bgorkem-skills/svg-to-png
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bgorkem/bgorkem-skills --skill svg-to-png
Clone the repo
git clone --depth 1 https://github.com/bgorkem/bgorkem-skills

Made for: Claude Code.

Or install image-transform, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for svg-to-png

README.md
[![agentmods](https://agentmods.dev/badge/skills/bgorkem/bgorkem-skills/svg-to-png/github.svg)](https://agentmods.dev/skills/bgorkem/bgorkem-skills/svg-to-png)
Your own site
<a href="https://agentmods.dev/skills/bgorkem/bgorkem-skills/svg-to-png"><img src="https://agentmods.dev/badge/skills/bgorkem/bgorkem-skills/svg-to-png/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for svg-to-png

Your own site · 80×15
<a href="https://agentmods.dev/skills/bgorkem/bgorkem-skills/svg-to-png"><img src="https://agentmods.dev/badge/skills/bgorkem/bgorkem-skills/svg-to-png.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,530 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00103 $0.02530
Opus 5 $0.00051 $0.01265
Sonnet 5 $0.00021 $0.00506
Haiku 4.5 $0.00010 $0.00253

Measured 12d ago against content hash b526513e9d32, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade B, and why

svg-to-png scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Ubuntu/Debian/Raspberry Pi OS: `sudo apt install librsvg2-bin`
plugins/image-transform/skills/svg-to-png/SKILL.md · 174 lines

How it starts

The opening of the file, as written. The whole thing — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 renderers handle CSS classes and modern SVG features poorly.

Inputs

The user provides — or this skill infers from context — these values:

Input Required Default Notes
input_path Yes Path to the source SVG file. Can be absolute or relative to cwd.
output_path No Same path as input with .svg replaced by .png Where to write the PNG.
width No 1600 Render width in pixels. Height is computed from the SVG's aspect ratio.
background_color No transparent Any CSS color value: named (black, white), hex (#1e1e1e), or rgba(r,g,b,a). Omit the flag entirely to keep the default transparent background.

Read the full file on GitHub · 174 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 174 lines · 103 tokens per session scan B b526513e9d32

Subscribe to this mod's changes

svg-to-png is a skill published in the GitHub repository bgorkem/bgorkem-skills (4 stars, last pushed 2mo ago), licensed MIT. It adds 103 tokens to every session and 2,530 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

information-architecture

Design the structure of a website or product including sitemap, navigation, URL structure, content types, taxonomy, and labeling. Use this skill whenever the user asks to plan a sitemap, design navigation, structure URLs, define content types, build taxonomies, design site search, or organize content at the system…

rampstackco/claude-skills · 131 tokens

journey-mapping

Build customer journey maps and service blueprints that visualize the end-to-end user experience including touchpoints, emotions, friction, and underlying systems. Use this skill whenever the user wants to map a customer journey, build a service blueprint, identify friction across an experience, align teams on the…

rampstackco/claude-skills · 131 tokens

usability-testing

Plan and run usability tests on existing or prototype designs including test design, task scripts, moderation, observation, and findings synthesis. Use this skill whenever the user wants to test usability, run a moderated test, run an unmoderated test, validate a design, find usability issues, or improve task…

rampstackco/claude-skills · 121 tokens

brand-style-guide

Build or audit a comprehensive brand style guide that documents the full brand system including story, logo system, color, typography, imagery, voice, applications, and dos/don'ts. Use this skill whenever the user wants to create brand guidelines, document an existing brand, build a brand book, audit an existing style…

rampstackco/claude-skills · 138 tokens

visual-qa

Runs rigorous visual QA across web, terminal, and paginated surfaces with screenshot evidence and a verdict. Use for any UI build or change, or when asked whether a page, component, or TUI looks right.

code-yeongyu/oh-my-openagent · 47 tokens

frontend

Builds, styles, and polishes web UI and UX. Use for any frontend, page, component, styling, layout, animation, or visual-quality task, or when asked to make an interface look or feel a certain way.

code-yeongyu/oh-my-openagent · 49 tokens