svg-to-png

svg-to-png is a skill for Claude Code from sean-sunagaku/claude-code-plugin. It costs 145 tokens per session (775 once invoked), scanned A, original, MIT.

A tool for converting SVG files, which are resolution-independent drawings, into PNG images at chosen sizes and backgrounds.

In plain words
What is it for?
Use it to create PNGs from SVG logos or artwork, including app icons and portrait splash screens, one file or in batches.
Why use it?
It removes the need to convert vector artwork manually while preserving control over dimensions, transparency, and visual rendering.

Skill for Claude Code

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

Part of the svg-to-png plugin — 1 skill shipped together

Good fit Use it to create PNGs from SVG logos or artwork, including app icons and portrait splash screens, one file or in batches.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sean-sunagaku/claude-code-plugin/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 sean-sunagaku/claude-code-plugin --skill svg-to-png
Clone the repo
git clone --depth 1 https://github.com/sean-sunagaku/claude-code-plugin

Made for: Claude Code.

Or install svg-to-png, 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/sean-sunagaku/claude-code-plugin/svg-to-png/github.svg)](https://agentmods.dev/skills/sean-sunagaku/claude-code-plugin/svg-to-png)
Your own site
<a href="https://agentmods.dev/skills/sean-sunagaku/claude-code-plugin/svg-to-png"><img src="https://agentmods.dev/badge/skills/sean-sunagaku/claude-code-plugin/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/sean-sunagaku/claude-code-plugin/svg-to-png"><img src="https://agentmods.dev/badge/skills/sean-sunagaku/claude-code-plugin/svg-to-png.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 145 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 775 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00145 $0.00775
Opus 5 $0.00072 $0.00387
Sonnet 5 $0.00029 $0.00155
Haiku 4.5 $0.00015 $0.00077

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

Security

Grade A, and why

svg-to-png scanned grade A with 0 findings 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/convert_svg.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

design/svg-to-png/skills/svg-to-png/SKILL.md · 73 lines

How it starts

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

SVG to PNG Conversion

Convert SVG to high-quality PNG using sharp with automatic density calculation.

Prerequisites

Ensure sharp is installed in the project (npm install sharp). Install it if missing before running the script.

Script Location

scripts/convert_svg.mjs — the main conversion script.

Single File Conversion

node scripts/convert_svg.mjs --input logo.svg --output logo.png --width 1024
node scripts/convert_svg.mjs --input logo.svg --width 512 --height 512 --background "#1a1a2e"

Arguments:

  • --input / -i (required): Path to input SVG
  • --output / -o: Output PNG path (defaults to <input-name>.png)
  • --width / -w: Target width in pixels
  • --height / -h: Target height in pixels
  • --background / -b: Background color (hex or named). Default: transparent

Preset Batch Conversion

Generate multiple PNGs from one SVG using built-in presets:

node scripts/convert_svg.mjs --input logo.svg --preset app-icon --output-dir ./icons
node scripts/convert_svg.mjs --input logo.svg --preset splash-portrait --output-dir ./splash

Arguments:

  • --preset / -p: Preset name (see below)
  • --output-dir / -d: Output directory (created automatically)

Available presets: app-icon, splash-portrait, splash-icon, favicon, og-image. For preset details and sizes, see references/presets.md.

Quality: How Density Works

sharp rasterises SVG at a given DPI (density). The script auto-calculates:

density = 72 * target_width / svg_viewbox_width

A 100-wide viewBox rendered at 1024px uses density 737, producing crisp output. No manual tuning needed.

Important Notes

  • Default is transparent: --background を指定しなければ背景は透明。SVG の背景色をそのまま活かせる。通常は背景色指定不要。
  • iOS app icons: 例外的に不透明必須。app-icon プリセットは自動で白背景にフォールバック。
  • mix-blend-mode / CSS filters: sharp (via librsvg) renders these correctly. Tested and confirmed.
  • Fonts: Convert text to <path> outlines in the SVG to avoid font-not-found issues on other machines.
  • CSS variables (var()): Not supported by librsvg. Replace with literal values before conversion.
  • Expo splash: Use splash-icon preset for the single image referenced by splash.image in app config.

Read the full file on GitHub · 73 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 73 lines · 145 tokens per session scan A 14c983237a61

Subscribe to this mod's changes

svg-to-png is a skill published in the GitHub repository sean-sunagaku/claude-code-plugin (36 stars, last pushed 1mo ago), licensed MIT. It adds 145 tokens to every session and 775 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

html-ppt-zhangzara-retro-zine

A neighborhood zine on the disappearing corner shops — portraits, voices, and what a block loses when they close. Built as a decision-grade story deck for community, local readers.

nexu-io/open-design · 49 tokens

html-ppt-zhangzara-studio

A photography studio's portfolio-and-rate deck — the signature work, the process, and the packages that win the brief. Built as a decision-grade design craft deck for prospective clients.

nexu-io/open-design · 47 tokens

motion-frames

A single-frame motion-design composition with looping CSS animations — rotating type ring, animated globe, ticking timer, parallax labels. Renders as a hero video poster you can hand straight to HyperFrames or any keyframe-based exporter. Use when the brief asks for "motion design", "animated hero", "loop", "video…

nexu-io/open-design · 91 tokens

webgl-halftone-drift

A self-contained WebGL2 hero: a flowing field screened through a rotated halftone dot grid into a duotone print aesthetic; move the cursor to bend the drift.

nexu-io/open-design · 44 tokens

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

motion-graphics

A short, design-led motion graphic where motion is the message — kinetic typography, stat count-up, chart/data-viz hit, logo sting / brand lockup, lower-third / callout / social overlay, animated map (highlight regions, connect places, zoom to a location), animated tweet / news-article / headline, webpage / UI…

heygen-com/hyperframes · 139 tokens