← Back to Skills Marketplace
166
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install svg-to-png
Description
将 SVG 矢量图片转换为 PNG 格式,支持指定尺寸。使用场景:(1) 将 SVG 图标转换为 PNG,(2) 调整图片尺寸,(3) 前端资源格式转换。使用前需在当前目录安装 sharp 依赖。
Usage Guidance
This skill appears internally consistent and does what it claims: it uses sharp to convert an SVG file to a PNG at a specified size. Before installing/using: (1) install sharp locally via npm in a project directory you control; (2) be cautious processing untrusted SVGs—SVGs can reference external resources or be crafted to cause excessive CPU/memory during rasterization—so run on isolated inputs or sandboxed environments if input is untrusted; (3) verify you install sharp from the official npm registry and that native build prerequisites for sharp/libvips are met on your platform. If you need stronger isolation, run the conversion in a container or VM.
Capability Analysis
Type: OpenClaw Skill
Name: svg-to-png
Version: 1.0.0
The skill is a straightforward utility for converting SVG files to PNG format using the reputable 'sharp' library. The script 'scripts/convert.js' performs basic file existence checks and image processing as described in 'SKILL.md', with no evidence of malicious intent, data exfiltration, or harmful prompt injection.
Capability Assessment
Purpose & Capability
Name/description (SVG → PNG conversion, size option) matches the included JavaScript (scripts/convert.js) which uses the sharp library to read an SVG, resize, and write a PNG. Declared requirements (install sharp locally) are appropriate for the stated purpose.
Instruction Scope
SKILL.md instructs installing sharp and running node scripts/convert.js with path and size args. The script only reads the specified SVG file, checks existence, resizes, and writes a PNG; it does not access environment variables, other files, network endpoints, or modify system state. No scope creep detected.
Install Mechanism
There is no automated install spec; the README instructs running 'npm install sharp' which is standard. package.json and package-lock.json reference sharp and its platform-specific binaries; no downloads from untrusted, shortened, or personal URLs are present in the package files provided.
Credentials
The skill requests no environment variables or credentials and the script does not read any. This is proportional for a local file-conversion utility.
Persistence & Privilege
The skill is user-invocable, not always-enabled, and contains no code that attempts to persist configuration, modify other skills, or alter system-wide agent settings.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install svg-to-png - After installation, invoke the skill by name or use
/svg-to-png - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
svg to image with png
Metadata
Frequently Asked Questions
What is svg-to-png?
将 SVG 矢量图片转换为 PNG 格式,支持指定尺寸。使用场景:(1) 将 SVG 图标转换为 PNG,(2) 调整图片尺寸,(3) 前端资源格式转换。使用前需在当前目录安装 sharp 依赖。 It is an AI Agent Skill for Claude Code / OpenClaw, with 166 downloads so far.
How do I install svg-to-png?
Run "/install svg-to-png" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is svg-to-png free?
Yes, svg-to-png is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does svg-to-png support?
svg-to-png is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created svg-to-png?
It is built and maintained by tianling (@try520); the current version is v1.0.0.
More Skills