← 返回 Skills 市场
699
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install svg-to-image
功能描述
Convert SVG to PNG or JPG for quick sharing (e.g. Telegram) or print.
安全使用建议
This skill is functionally what it says, but review these points before installing: (1) You must install cairosvg, Pillow, and system libcairo2 yourself; install from official sources (pip, distro repos). (2) The agent will run the included Python script automatically (no confirmation) when asked to convert; make sure you trust the input. (3) SVGs can reference external resources — cairosvg may fetch them, which could leak requests to internal services (SSRF) or cause outbound network activity. Avoid converting untrusted or unknown SVGs, or run the skill in a sandboxed environment. (4) Follow the SKILL.md instruction to write output to allowed media dirs (/tmp or ~/.openclaw/media/) so the agent can send the file. If you want stronger guarantees, consider modifying the script to disable URL fetching or validate/clean SVG inputs before rasterizing.
功能分析
Type: OpenClaw Skill
Name: svg-to-image
Version: 1.1.1
The skill is classified as suspicious due to its use of the high-risk `shell:exec` permission and instructions in `SKILL.md` that constitute a prompt injection against the agent, telling it to 'run the script directly' and 'Do not ask for confirmation'. While the script `scripts/convert_svg.py` itself appears to perform its stated function without explicit malicious code (e.g., no data exfiltration, network calls, or persistence mechanisms), processing user-supplied file paths and SVG content carries inherent vulnerabilities like potential path traversal or resource exhaustion. The prompt injection aims to streamline the intended (benign) operation, not to hide malicious activity, but it bypasses agent safeguards.
能力评估
Purpose & Capability
The name/description match the provided code and instructions. The included Python script (cairosvg + Pillow) directly implements SVG→PNG/JPG conversion, and the declared dependencies align with that purpose.
Instruction Scope
SKILL.md instructs the agent to run the script directly (exec) and to not ask for confirmation when the user requests a conversion. The instructions require output files be placed in allowed media dirs (/tmp or ~/.openclaw/media/) which limits exfiltration of results. However, the script uses cairosvg.svg2png with the 'url' parameter: if given a URL or SVG that references external resources, cairosvg may perform network fetches (possible SSRF or unexpected outbound requests). This is a runtime risk inherent to converting arbitrary SVG inputs.
Install Mechanism
No installation spec is provided (instruction-only), so nothing arbitrary is downloaded by the skill itself. The README asks the operator to pip install requirements.txt and to install system libcairo2 which is normal for this task.
Credentials
The skill requests no environment variables, credentials, or config paths. Its resource access (local file paths provided as arguments) is proportionate to converting files.
Persistence & Privilege
always:false (no forced presence). The SKILL.md explicitly tells the agent to execute conversions without asking for confirmation; combined with the platform's normal autonomous invocation, this gives the skill the ability to run the conversion script automatically when triggered. That is not itself incorrect for a conversion utility, but users should be aware it will execute code on-demand.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install svg-to-image - 安装完成后,直接呼叫该 Skill 的名称或使用
/svg-to-image触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.1
Patch: OpenClaw allowed media paths docs.
v1.0.0
Convert SVG to PNG or JPG; optional width/height and DPI.
元数据
常见问题
SVG to Image 是什么?
Convert SVG to PNG or JPG for quick sharing (e.g. Telegram) or print. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 699 次。
如何安装 SVG to Image?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install svg-to-image」即可一键安装,无需额外配置。
SVG to Image 是免费的吗?
是的,SVG to Image 完全免费(开源免费),可自由下载、安装和使用。
SVG to Image 支持哪些平台?
SVG to Image 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 SVG to Image?
由 AddinCui(@qrost)开发并维护,当前版本 v1.1.1。
推荐 Skills