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:
Run the helper script:
bash
python scripts/circle_png.py input.png output.png
If the system uses python3:
bash
python3 scripts/circle_png.py input.png output.png
Set an exact output size:
bash
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:
bash
python scripts/circle_png.py input.png output.png --fit contain
Overwrite an existing output file:
bash
python scripts/circle_png.py input.png output.png --force
The script requires Pillow. If it is missing, install it in the active Python environment:
bash
python -m pip install pillow
Prefer a virtual environment when modifying a project:
bash
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.
When the user asks to make a PNG circular:
-circle.png appended before the extension.scripts/circle_png.py to generate the output.--fit cover by default for avatar-style results.--fit contain when the user says to preserve the full image.--size only when the user asks for a specific output dimension.--force is appropriate.