transparent-background
Transparent Background
One script, scripts/imgalpha.py, does the work. Run it through uv (no global installs) on
macOS, Linux, or Windows, with the pinned versions below. Define the ia helper in each shell
command that uses it; the examples below use it. Set IA_PY to the absolute path of
scripts/imgalpha.py inside the folder that holds this SKILL.md (Claude Code shows it as the
skill's base directory; a project install is <workspace>/.agents/skills/transparent-background/).
Never derive it from the current directory: a repository you are inside could hold its own copy.
Run ia from the workspace root or another folder you trust, never from inside a folder of
received images. uv reads pyproject.toml, uv.toml, and .venv from the current folder and its
parents, so a folder that came with the images could change what gets installed and run.
--no-project --no-config keeps the first two out; the folder rule covers the rest. Pass images as
absolute paths or paths relative to that folder.
bash / zsh / Git Bash: