circle-png-image
/install circle-png-image
\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
- Open the input PNG.\r
- Convert it to RGBA so transparency is preserved.\r
- Center-crop the image to a square using the shorter side.\r
- Apply a circular alpha mask.\r
- 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
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install circle-png-image - After installation, invoke the skill by name or use
/circle-png-image - Provide required inputs per the skill's parameter spec and get structured output
What is 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. It is an AI Agent Skill for Claude Code / OpenClaw, with 55 downloads so far.
How do I install circle-png-image?
Run "/install circle-png-image" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is circle-png-image free?
Yes, circle-png-image is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does circle-png-image support?
circle-png-image is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created circle-png-image?
It is built and maintained by charming.zuo (@charmingzuo); the current version is v1.0.1.