Token导航 LogoToken导航TokenDH.com
图像处理敏感数据github未标认证来源可访问clear审计通过

image-remove-background图像删除背景

Agent Skill

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。它适合让 Agent 根据文本生成图片、处理背景、整理视觉提示词或调用相关图像工具。使用时需要确认输入图片、版权来源、输出格式和模型限制;涉及人物、品牌、商品或公开展示素材时,应额外核对授权、真实性和内容合规边界。

总安装

3,030

周安装

125

GitHub Stars

4

下载量

990
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:image-remove-background(图像删除背景)
来源仓库:https://github.com/agntswrm/agent-media
仓库路径:skills/image-remove-background
安装命令:
npx skills add https://github.com/agntswrm/agent-media --skill image-remove-background
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/agntswrm/agent-media --skill image-remove-background

简介

精准分离前景与背景,支持透明通道输出。

  • 适用于电商抠图、头像制作与合成素材准备。
  • 采用深度学习模型提升边缘处理精度。image-remove-background 属于图像处理类 Skill,可作为该场景下的辅助能力补充。
  • 毛发、半透明物体等复杂情况需人工校验。
  • 不得用于非法用途或侵犯他人肖像权。

SKILL.md

Image Remove Background

Removes the background from an image, leaving only the foreground subject with transparency.

Command

npx agent-media@latest image remove-background --in <path> [options]

Inputs

OptionRequiredDescription
--inYesInput file path or URL
--outNoOutput path, filename or directory (default:./)
--providerNoProvider to use (local, fal, replicate)
--resolutionNoOutput resolution (e.g., "2048x2048"). Supported by fal Dynamic model.

Output

Returns a JSON object with the processed image path:

{
  "ok": true,
  "media_type": "image",
  "action": "remove-background",
  "provider": "fal",
  "output_path": "nobg_123_abc.png",
  "mime": "image/png",
  "bytes": 34567
}

Examples

Remove background from local file:

npx agent-media@latest image remove-background --in portrait.jpg

Remove background using specific provider:

npx agent-media@latest image remove-background --in portrait.jpg --provider replicate

Remove background at full resolution (fal Dynamic model):

npx agent-media@latest image remove-background --in portrait.jpg --provider fal --resolution 2048x2048

Providers

local

Runs locally on CPU using Transformers.js, no API key required.

  • Uses Xenova/modnet model
  • Models downloaded on first use (~25MB)
  • You may see a mutex lock failed error — ignore it, the output is correct if "ok": true
npx agent-media@latest image remove-background --in portrait.jpg --provider local

fal

  • Requires FAL_API_KEY
  • Uses birefnet/v2 model with General Use (Dynamic) variant
  • Supports --resolution option (e.g., "2048x2048") for processing at full input resolution

replicate

  • Requires REPLICATE_API_TOKEN
  • Uses birefnet model

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

32.07%
按下载量换算317

windsurf

22.17%
按下载量换算219

OpenCode

19.18%
按下载量换算190

Gemini CLI

12.53%
按下载量换算124

Antigravity

7.66%
按下载量换算76

Codex

3.86%
按下载量换算38

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills