background-remover

Remove photo backgrounds and produce alpha cutouts or JPEG/PNG composites.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/mlamla123/openclaw-starter-kit --skill background-remover-mlamla123
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: background-remover
Source: https://github.com/mlamla123/openclaw-starter-kit/tree/main/skills/background-remover
Command: npx skills add https://github.com/mlamla123/openclaw-starter-kit --skill background-remover-mlamla123

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires rembg, numpy, pillow, opencv-python, ultralytics, requests, pillow_heif, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Remove photo backgrounds and produce composite-ready cutouts or finished JPEG/PNG output for portraits, product images, and marketing visuals. Handles hair-edge alpha matting, color-spill removal, EXIF orientation, and face-aware cropping (OpenCV YuNet with Haar cascade fallback). Trigger phrases include remove background, make transparent, cutout, headshot from group photo, clean background, crop to one person, product on white.

Core Features & Use Cases

  • Background removal with deterministic results, hair-edge refinement, and color-spill suppression.
  • Produce alpha-ready cutouts for portraits, product imagery, album art, and multi-person group photos.
  • Batch processing via CLI (scripts/ pro_processor and auto) with optional gradient backgrounds, shadows, and composed outputs.

Quick Start

Run the background remover on a batch of images to produce alpha-ready cutouts or finished JPEG/PNG composites.

Frequently Asked Questions about background-remover

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I remove backgrounds from product photos and make transparent cutouts?

To remove backgrounds and make transparent cutouts, the Skill processes images using rembg models to generate alpha-ready outputs. It handles single-subject isolation and produces composite-ready PNG files for product imagery and marketing visuals.

Can I batch process multiple images for background removal at once?

Yes, batch processing for background removal is supported via a deterministic CLI in the scripts directory. You can process multiple images simultaneously to produce alpha-ready cutouts or finished JPEG/PNG composites.

Does background removal handle fine hair edges and color spill?

Yes, background removal includes hair-edge alpha matting and color-spill removal. The pipeline applies pre-matting enhancements and edge refinement to ensure crisp cutouts without residual background color bleeding.

How do I crop a single person or headshot from a group photo?

To crop a headshot from a group photo, the Skill uses face-aware cropping with OpenCV YuNet and a Haar cascade fallback. This isolates one person automatically while maintaining correct EXIF orientation.

Can I add a custom background or shadow after removing the original background?

Yes, after removing the original background, you can composite the cutout onto optional gradient backgrounds with shadows. The pipeline outputs finished JPEG or PNG files rather than just alpha channels.

What image formats can I use for background removal and compositing?

Background removal supports standard image formats processed via Pillow and Pillow-HEIF, outputting alpha channels or full JPEG and PNG composites. OpenCV and NumPy handle the underlying image processing and matrix operations.