# Rembg AI Background Removal

> Isolates foreground subjects and removes complex image backgrounds using neural U2-Net models via rembg. Use when automating e-commerce product cutout workflows

- Skill: `bishnucd/rembg-ai-background-removal` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add bishnucd/rembg-ai-background-removal`
- Raw SKILL.md: https://api.skillmd.com/api/skills/bishnucd/rembg-ai-background-removal/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: Bishnucd (https://skillmd.com/u/bishnucd)
- Updated: 2026-12-03
- Page: https://skillmd.com/skills/bishnucd/rembg-ai-background-removal

---

---
name: rembg-ai-background-removal
description: Isolates foreground subjects and removes complex image backgrounds using neural U2-Net models via rembg. Use when automating e-commerce product cutout workflows.
license: MIT
metadata:
  author: Community List Maintainers
  version: "1.0.0"
  source: "https://github.com/danielgatis/rembg"
---
# Rembg Ai Background Removal

## Overview
Manual background cutout with pen tools takes minutes per image. Rembg utilizes U2-Net salient object detection to isolate subjects with hair and fur transparency in under one second.

## Operational Workflow

1. **Load source raster image and initialize rembg session with target ONNX model (u2net or isnet).**:
   - Load source raster image and initialize rembg session with target ONNX model (u2net or isnet).

2. **Execute background removal with alpha matting enabled for fine edge details.**:
   - Execute background removal with alpha matting enabled for fine edge details.

3. **Apply post-processing erosion and Gaussian blur on alpha masks to eliminate fringe halos.**:
   - Apply post-processing erosion and Gaussian blur on alpha masks to eliminate fringe halos.

4. **Export transparent PNG or composite subject onto pure white RGB canvas.**:
   - Export transparent PNG or composite subject onto pure white RGB canvas.

## Recommended Tools & Environments
- Python 3.10+
- rembg
- ONNX Runtime
- Pillow

## Verification & Execution Criteria
- Pre-execution validation verifies all prerequisites and inputs.
- Step-by-step progress logging confirms intermediate state transitions.
- Post-execution checks verify output integrity and clean exit codes.

