real-transparent-background-skill

Convert images that show fake transparency (visible checkerboard, solid key-color, or pasted grid backgrounds) into true transparent PNGs with a real alpha channel. Intended for cases from image-generation models or batch PNG/JPG/WebP resources where you need to preserve foreground artwork/text and create non-destructive transparent copies.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "real-transparent-background-skill" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-37d8a76b0d5bc394b16d803d17b4cd14a12e4cdae91bacc5c58625c74272bd1b. Verify the upstream source and version against https://skillhub.cn/skills/user_e43342de/real-transparent-background-skill before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Convert images that show fake transparency (visible checkerboard, solid key-color, or pasted grid backgrounds) into true transparent PNGs with a real alpha channel. Intended for cases from image-generation models or batch PNG/JPG/WebP resources where you need to preserve foreground artwork/text and create non-destructive transparent copies.

0 Downloads

Introduction source: third_party · user_e43342de · 1.0.0 Reference

SkillPi interpretation

Tasks
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.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
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.

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

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

Highlights

  • 触发描述清晰完整,覆盖多种使用场景和边界条件
Structure and Standards90/100

Areas to improve

  • description 内容重复 Reported severity: Minor

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

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

Highlights

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

Highlights

  • 工具来源明确,参数说明清晰,支持批量处理和自定义输出
  • 内置结果验证机制,确保输出符合 RGBA 和透明度要求
Evidence Verifiability (mean of the first four)88/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

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

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.