media-matte
Installation
SKILL.md
Media Matte
Context: $ARGUMENTS
Quick start
- Still image → transparent PNG: rembg (default) → Step 2 recipe A.
- Very hard edges (hair, fur, glass): BiRefNet → Step 2 recipe B.
- Product photos, no humans: RMBG-2.0 → Step 2 recipe C.
- Video with a moving person: RVM (RobustVideoMatting) → Step 3.
- Composite subject onto new background: matte, then
compositesubcommand → Step 5.
When to use
- User says "remove background", "cut out", "no greenscreen", "matte", "transparent PNG", "alpha channel".
- Source has a subject on an arbitrary background (natural photo, phone video, product shot).
- Video has a moving subject and a per-frame
rembgrun flickers in the edges — use RVM for temporal coherence. - Do NOT use for chroma-key on actual greenscreen footage — use
ffmpeg-chromakeyinstead. A real green screen is cheaper and sharper than neural matting. - Do NOT use for binary/hard segmentation masks for object-detection tasks — use
cv-mediapipe/cv-opencv.