real-transparent-background-skill

将带有假透明效果(如可见棋盘格、纯色色键或粘贴网格背景)的图像转换成带真实 alpha 通道的透明 PNG。适用于来自图像生成模型或批量 PNG/JPG/WebP 资源中需要保留前景艺术或文本并创建非破坏性透明副本的场景。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "real-transparent-background-skill":https://skillpi.com/zh/skills/deepskill-37d8a76b0d5bc394b16d803d17b4cd14a12e4cdae91bacc5c58625c74272bd1b。安装前核对上游来源和版本:https://skillhub.cn/skills/user_e43342de/real-transparent-background-skill。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

将带有假透明效果(如可见棋盘格、纯色色键或粘贴网格背景)的图像转换成带真实 alpha 通道的透明 PNG。适用于来自图像生成模型或批量 PNG/JPG/WebP 资源中需要保留前景艺术或文本并创建非破坏性透明副本的场景。

0 下载

介绍来源: third_party · user_e43342de · 1.0.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
来源文档未说明。
输入和输出
来源文档未说明。
软件、账号及付费要求
来源文档未说明。
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: real-transparent-background-skill
description: Convert images with fake transparency, checkerboard backgrounds, solid chroma backgrounds, or pasted grid backgrounds into truly transparent PNGs with a real alpha channel. Use when image-generation models produce a visible transparency grid or other fake background and the user asks to make the background genuinely transparent, preserve foreground artwork/text, batch-process PNG/JPG/WebP assets, or create non-destructive transparent sibling files.

Real Transparent Background

Quick Start

Use scripts/checkerboard_to_alpha.py for deterministic background extraction when an image already contains a visible gray/white checkerboard or similar fake transparent background. Prefer this script over AI image regeneration when the foreground must remain unchanged.

Run it with a Python that has Pillow and NumPy available:

python "/path/to/real-transparent-background-skill/scripts/checkerboard_to_alpha.py" "/path/to/image.png" --suffix=-transparent

For multiple files:

python "/path/to/real-transparent-background-skill/scripts/checkerboard_to_alpha.py" "/path/to/a.png" "/path/to/b.png" --output-dir "/path/to/transparent" --suffix=-transparent

Workflow

  1. Treat the provided image path(s) as edit targets, not style references.
  2. Save non-destructively by default. Use a sibling filename such as name-transparent.png unless the user explicitly asks to overwrite.
  3. Use the bundled script for fake checkerboard or flat neutral backgrounds. It estimates the background colors from border pixels, flood-fills only background connected to the canvas edges, and writes an RGBA PNG.
  4. For images with colored glows, halos, lightbulbs, or aura effects that should remain semi-transparent, add --soft-colored-edges. For thin pale foreground details such as whiskers or white line art, omit that flag to preserve colored details.
  5. If writing outputs outside the current workspace, request filesystem approval before copying or saving there.
  6. Validate the result before finishing: output mode should be RGBA; corner alpha should be 0; foreground sample points should remain 255.

Script Notes

scripts/checkerboard_to_alpha.py supports:

  • one or more input files
  • --output-dir for batch output
  • --output for a single explicit output path
  • --suffix for sibling filenames
  • --overwrite only when replacement is intentional
  • threshold tuning for unusual backgrounds

The script prints one JSON line per processed file with output path, image size, palette estimate, alpha counts, and corner-alpha samples. Use those values in the final response when reporting validation.

When To Avoid The Script

Use a true segmentation or model-native transparency workflow instead when the background is not connected to image borders, is a complex scene, overlaps foreground colors heavily, or the task requires inventing missing foreground pixels. Ask before switching to a generative or API fallback if it could alter the subject.

当前收录版本

1.0.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 解决图像生成模型输出虚假透明背景转真正透明 PNG 的实际痛点
  • 适用于设计师和内容创作者的高频需求,具备明确实用价值
触发精准90/100

亮点

  • 触发描述清晰完整,覆盖多种使用场景和边界条件
结构规范90/100

待提升项

  • description 内容重复 原报告严重程度:轻微

    frontmatter 和 skill_body 内部均包含相同 description 内容

    改进建议:建议移除 skill_body 内部的重复 description,保持单一来源

亮点

  • 结构完整,包含快速开始、工作流、脚本说明和避坑指南
  • 提供端到端可执行示例,frontmatter 规范完整
执行可靠88/100

亮点

  • 工具来源明确,参数说明清晰,支持批量处理和自定义输出
  • 内置结果验证机制,确保输出符合 RGBA 和透明度要求
证据可验 (前四项均值)88/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

来源文档未说明。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。