remove-backgroundlisted
Install: claude install-skill HermeticOrmus/hermetic-claude
# Remove Background
Batch remove backgrounds from images using rembg (Python library).
## When This Skill Activates
- User says "remove background", "make transparent"
- User has images that need transparent backgrounds
- User wants to batch process multiple images
## Prerequisites
rembg must be installed:
```bash
pip install rembg
# or
pipx install rembg
```
Verify installation:
```bash
rembg --version
```
## How To Use
### Single Image
```bash
rembg i INPUT.png OUTPUT.png
```
### Batch Process Directory
**IMPORTANT**: Never output to the same file - use a separate output directory to avoid corruption.
```bash
# Create backup first
mkdir -p backup && cp *.png backup/
# Process to separate folder
mkdir -p processed
for img in *.png; do
echo "Processing: $img"
rembg i "$img" "processed/$img"
done
# Verify results, then replace originals
mv processed/*.png . && rmdir processed
```
### Process Entire Folder (rembg native)
```bash
rembg p INPUT_DIR OUTPUT_DIR
```
## Output Format
- Input: Any image (PNG, JPG, WEBP)
- Output: PNG with RGBA (alpha channel for transparency)
## Example Workflows
### Web Assets
```bash
cd ~/projects/my-app/public/images
mkdir -p transparent
for img in *.png; do rembg i "$img" "transparent/$img"; done
```
### Product Photos
```bash
cd ~/products/photos
mkdir -p cutout
rembg p . cutout/
```
## Models Available
rembg supports different AI models:
| Model | Quality | Speed | Use Case |
|-------|---------|-------|----------|
| u