← 返回 Skills 市场
charmingzuo

circle-png-image

作者 charming.zuo · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
55
总下载
1
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install circle-png-image
功能描述
Convert PNG images into circular PNG avatars with transparent corners. Use when the user asks to crop, mask, cut out, or convert a PNG image into a circle.
使用说明 (SKILL.md)

\r \r

Circle PNG Image\r

\r

What This Skill Does\r

\r Use this skill to turn any PNG image into a circular PNG with transparency outside the circle. It is intended for avatars, profile photos, icons, and other round image assets.\r \r The default behavior is:\r \r

  1. Open the input PNG.\r
  2. Convert it to RGBA so transparency is preserved.\r
  3. Center-crop the image to a square using the shorter side.\r
  4. Apply a circular alpha mask.\r
  5. Save the result as a PNG.\r \r

Quick Start\r

\r Run the helper script:\r \r

python scripts/circle_png.py input.png output.png\r
```\r
\r
If the system uses `python3`:\r
\r
```bash\r
python3 scripts/circle_png.py input.png output.png\r
```\r
\r
## Options\r
\r
Set an exact output size:\r
\r
```bash\r
python scripts/circle_png.py input.png output.png --size 512\r
```\r
\r
Preserve the entire image by padding it to a square before applying the circular mask:\r
\r
```bash\r
python scripts/circle_png.py input.png output.png --fit contain\r
```\r
\r
Overwrite an existing output file:\r
\r
```bash\r
python scripts/circle_png.py input.png output.png --force\r
```\r
\r
## Dependency\r
\r
The script requires Pillow. If it is missing, install it in the active Python environment:\r
\r
```bash\r
python -m pip install pillow\r
```\r
\r
Prefer a virtual environment when modifying a project:\r
\r
```bash\r
python -m venv .venv\r
.venv/Scripts/python -m pip install pillow\r
.venv/Scripts/python scripts/circle_png.py input.png output.png\r
```\r
\r
On macOS or Linux, use `.venv/bin/python` instead of `.venv/Scripts/python`.\r
\r
## Agent Instructions\r
\r
When the user asks to make a PNG circular:\r
\r
1. Confirm the input image path and desired output path. If no output is specified, use the input name with `-circle.png` appended before the extension.\r
2. Use `scripts/circle_png.py` to generate the output.\r
3. Use `--fit cover` by default for avatar-style results.\r
4. Use `--fit contain` when the user says to preserve the full image.\r
5. Use `--size` only when the user asks for a specific output dimension.\r
6. Never overwrite an existing output unless the user explicitly asks or `--force` is appropriate.\r
\r
## Notes\r
\r
- Output is always PNG with an alpha channel.\r
- Non-square inputs are centered automatically.\r
- The circle touches the output square's edges.\r
安全使用建议
This skill is safe to use for local PNG conversion. Before installing, note that it depends on Pillow and will write an output image where you specify; use a virtual environment and avoid --force unless you mean to overwrite an existing file.
功能分析
Type: OpenClaw Skill Name: circle-png-image Version: 1.0.1 The skill is a straightforward utility for converting PNG images into circular avatars using the Pillow library. The Python script (scripts/circle_png.py) and the instructions (SKILL.md) are well-structured, lack any high-risk behaviors such as network access or shell execution, and align perfectly with the stated purpose.
能力评估
Purpose & Capability
The stated purpose, documentation, and source code all align around local PNG image cropping/masking with Pillow.
Instruction Scope
The agent instructions require confirming input and output paths and say not to overwrite existing files unless the user explicitly asks.
Install Mechanism
The skill installs the Pillow package, which is expected for image processing, but the dependency is not pinned to a specific version in the provided artifacts.
Credentials
No credentials, environment variables, network calls, broad filesystem scanning, or account access are declared or shown.
Persistence & Privilege
The script writes a persistent output image and can create the output directory; this is expected for the skill and scoped to the user-provided output path.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install circle-png-image
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /circle-png-image 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
No changes detected in this version. - No updates or modifications were made to the files. - The skill remains at version 1.0.0 with the same features and behavior.
v1.0.0
- Initial release of the skill for converting PNG images into circular PNG avatars with transparent corners. - Provides a command-line script (`scripts/circle_png.py`) for processing images. - Supports options for output size, fit mode (cover or contain), and forced overwrite. - Requires Pillow library for image processing. - Includes detailed instructions and agent guidance for usage.
元数据
Slug circle-png-image
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

circle-png-image 是什么?

Convert PNG images into circular PNG avatars with transparent corners. Use when the user asks to crop, mask, cut out, or convert a PNG image into a circle. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 55 次。

如何安装 circle-png-image?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install circle-png-image」即可一键安装,无需额外配置。

circle-png-image 是免费的吗?

是的,circle-png-image 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

circle-png-image 支持哪些平台?

circle-png-image 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 circle-png-image?

由 charming.zuo(@charmingzuo)开发并维护,当前版本 v1.0.1。

💬 留言讨论