pet-image-matting

Extract pet subjects from images into transparent PNGs.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/worm-13/pet-design-agent --skill pet-image-matting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pet-image-matting
Source: https://github.com/worm-13/pet-design-agent/tree/main/.cursor/skills/pet-image-matting
Command: npx skills add https://github.com/worm-13/pet-design-agent --skill pet-image-matting

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

这项技能从用户提供的宠物原图提取无背景的主体(头部/半身/全身),输出透明 PNG,方便在后续的模板合成中进行图层叠加。

Core Features & Use Cases

  • 支持输入图片和可选的 pet_type(head、half_body、full_body),输出带 alpha 通道的主体 PNG,供后续合成使用。
  • 适用于宠物设计工作流的分步处理:先抠图、再叠模板,不修改背景。
  • 支持 state.crop_mode 与 pet_type 映射的确定性处理,便于自动化工作流对接。

Quick Start

使用 pet-image-matting 提供输入图像和可选的 pet_type,抠出透明背景的宠物主体,输出路径为 extracted_image。

Frequently Asked Questions about pet-image-matting

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

FAQPage Schema
How do I extract a pet subject from an image into a transparent PNG?

To extract a pet subject into a transparent PNG, provide your image and select a crop mode like head, half_body, or full_body. The tool outputs an image with an alpha channel for clean layering onto new backgrounds.

Can I specify the crop area when removing a pet image background?

Yes, you can specify the crop area during background removal by setting the pet_type parameter. Available options include head, half_body, and full_body to determine the exact silhouette boundaries for your template composition.

What is image matting used for in pet design workflows?

Image matting in pet design workflows is used to isolate the animal subject without modifying the original background. This produces a clean, transparent silhouette for precise layering onto new templates or custom backgrounds.

Does the pet image matting process support automated workflow integration?

Yes, the pet image matting process supports automated workflow integration through deterministic state mapping. The pet_type input directly maps to a specific crop_mode, ensuring consistent and scriptable processing outputs.

What limitations are there when extracting full body pet silhouettes?

A limitation when extracting full body pet silhouettes is the dependency on the original image quality and framing. The automated crop_mode mapping requires clear subject boundaries to successfully generate the transparent PNG output.