Skip to main content

resvg

Use this skill when the user wants to render, convert, or optimize SVG files — export SVG to PNG/PDF, batch-convert icons, or preview vector graphics from the command line.

소스 정보

저장소
javimosch/supercli
최근 소스 활동
2026년 7월 20일 19:45
감지된 SKILL.md 언어
영어
스타
51
포크
7

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
resvg
description
Use this skill when the user wants to render, convert, or optimize SVG files — export SVG to PNG/PDF, batch-convert icons, or preview vector graphics from the command line.
# resvg Plugin High-quality SVG rendering engine with a CLI for converting SVG to PNG, PDF, or optimized SVG. Supports SVG 1.1 and most SVG 2.0 features. ## Installation ```bash brew install resvg # or cargo install resvg ``` Download binaries from [GitHub Releases](https://github.com/linebender/resvg/releases). ## Basic Usage ```bash # Convert SVG to PNG (default output: input.png) resvg icon.svg # Specify output path and size resvg logo.svg output.png --width 512 --height 512 # Export to PDF resvg diagram.svg diagram.pdf # Render with a background color resvg badge.svg badge.png --background white ``` ## Common Patterns ```bash # Batch convert all SVGs in a directory for f in icons/*.svg; do resvg "$f" "png/$(basename "$f" .svg).png"; done # Scale to fit a max dimension resvg chart.svg chart.png --zoom 2.0 # Use a custom font directory for text rendering resvg label.svg label.png --use-fonts-dir ./fonts ``` ## Usage Examples - "Convert this SVG icon to a 256×256 PNG" - "Render an SVG diagram to PDF for printing" - "Batch-export all SVG assets to PNG" ## SuperCLI ```bash sc resvg _ _ icon.svg output.png sc plugins learn resvg ```
GitHub에서 보기