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.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "circle-png-image" with this command: npx skills add charmingzuo/circle-png-image

Circle PNG Image

What This Skill Does

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.

The default behavior is:

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

Quick Start

Run the helper script:

python scripts/circle_png.py input.png output.png

If the system uses python3:

python3 scripts/circle_png.py input.png output.png

Options

Set an exact output size:

python scripts/circle_png.py input.png output.png --size 512

Preserve the entire image by padding it to a square before applying the circular mask:

python scripts/circle_png.py input.png output.png --fit contain

Overwrite an existing output file:

python scripts/circle_png.py input.png output.png --force

Dependency

The script requires Pillow. If it is missing, install it in the active Python environment:

python -m pip install pillow

Prefer a virtual environment when modifying a project:

python -m venv .venv
.venv/Scripts/python -m pip install pillow
.venv/Scripts/python scripts/circle_png.py input.png output.png

On macOS or Linux, use .venv/bin/python instead of .venv/Scripts/python.

Agent Instructions

When the user asks to make a PNG circular:

  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.
  2. Use scripts/circle_png.py to generate the output.
  3. Use --fit cover by default for avatar-style results.
  4. Use --fit contain when the user says to preserve the full image.
  5. Use --size only when the user asks for a specific output dimension.
  6. Never overwrite an existing output unless the user explicitly asks or --force is appropriate.

Notes

  • Output is always PNG with an alpha channel.
  • Non-square inputs are centered automatically.
  • The circle touches the output square's edges.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Multi Site Health Monitor

Monitor dozens of websites with configurable health checks, auto-restart alerts, and intelligent alert routing. Use when the user needs uptime tracking, perf...

Registry SourceRecently Updated
General

summarizer for school

Processes any supported file type to extract key information and produce concise, structured summaries tailored for school study needs.

Registry SourceRecently Updated
General

instruction-web

生成包含截图占位符和操作步骤的美观Web界面操作指南HTML页面,介绍软件功能及导入智能体教程。

Registry SourceRecently Updated
General

Cross Platform Content Syncer

Publish content once, distribute everywhere—sync WordPress, Substack, Medium, and LinkedIn automatically. Use when the user needs multi-channel publishing, c...

Registry SourceRecently Updated