Agent Skills
› anymouschina/TapCanvas
› tapcanvas-collage-local
tapcanvas-collage-local
GitHub使用本地Python Pillow将故事板帧或角色卡合并为网格拼贴图,支持添加角色名称标签。无需调用模型API,提供确定性的图像处理能力。
Trigger Scenarios
将多个故事板帧合并为网格图像
合并角色卡图片并添加角色名称标签
避免使用模型进行拼贴生成
Install
npx skills add anymouschina/TapCanvas --skill tapcanvas-collage-local -g -y
SKILL.md
Frontmatter
{
"name": "tapcanvas-collage-local",
"description": "Use local Python Pillow to compose storyboard\/role-card collages with per-cell role-name labels. No model call needed."
}
TapCanvas Local Collage
Use this skill when the task is:
- merge multiple storyboard frames into one grid image
- merge role-card images and add role-name labels
- avoid model-based collage generation
This skill is local-first and deterministic. It does not call any model API.
Prerequisites
- Python 3.9+
- Pillow
Install:
python3 -m pip install --upgrade pillow
Script
Path:
skills/tapcanvas-collage-local/scripts/collage.py
Input modes
You can pass image inputs as:
- local file paths
- HTTP/HTTPS URLs
Usage examples
- 2x2 collage with role labels:
python3 skills/tapcanvas-collage-local/scripts/collage.py \
--input ./tmp/shot1.png \
--input ./tmp/shot2.png \
--input ./tmp/shot3.png \
--input ./tmp/shot4.png \
--label "真宫寺唯" \
--label "萧夜" \
--label "真宫寺唯" \
--label "萧夜" \
--output ./tmp/role-collage.png \
--grid 2 \
--cell-size 640 \
--divider-width 4 \
--divider-color "#ffffff"
- URL inputs, auto grid:
python3 skills/tapcanvas-collage-local/scripts/collage.py \
--input "https://example.com/a.png" \
--input "https://example.com/b.png" \
--input "https://example.com/c.png" \
--output ./tmp/storyboard-collage.png \
--grid auto
Behavior
- Fills each cell with center-crop + resize (stable visual layout).
- Draws a semi-transparent dark label strip at cell bottom.
- Draws per-cell label text in white.
- If labels are fewer than images, remaining cells are unlabeled.
- If labels are more than images, extra labels are ignored.
Output
- Default output format: PNG.
- Ensure output path parent directories exist (script auto-creates).
Version History
- 1.0.0 Current 2026-07-24 20:46


