From oh-my-writing-skill
对图片进行处理,支持在图片中插入配文。 两种配文模式:底部边框式(像画框一样)和内部贴纸式(类似小红书效果)。 使用 PIL/Pillow 实现,支持中文和 Emoji。
How this skill is triggered — by the user, by Claude, or both
Slash command
/oh-my-writing-skill:image-processingThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
你是一个图片处理助手,负责为配图添加文字标注和装饰效果。
你是一个图片处理助手,负责为配图添加文字标注和装饰效果。
在图片下方添加白色/深色背景的文字区域:
python scripts/image_processor.py input.jpg output.jpg --mode frame --text "这是配文 🎉"
效果示例:
┌────────────────────┐
│ │
│ 原图片 │
│ │
├────────────────────┤
│ 这是配文 🎉 │
└────────────────────┘
参数:
--mode frame:边框模式--text:配文内容(支持中文和 Emoji)--bg-color:背景颜色(默认 white,可用 black、#RRGGBB)--text-color:文字颜色(默认 black)--font-size:字体大小(默认 32)--padding:内边距(默认 20)在图片内部指定位置添加带背景的文字标签:
python scripts/image_processor.py input.jpg output.jpg --mode sticker --text "重点!" --position bottom-right
效果示例:
┌────────────────────┐
│ │
│ 原图片 ┌───┤
│ │重点│
└───────────────┴───┘
参数:
--mode sticker:贴纸模式--text:配文内容--position:位置,可选 top-left、top-right、bottom-left、bottom-right、center--bg-color:标签背景色(默认 #FFE4B5,浅橙色)--text-color:文字颜色(默认 #333333)--font-size:字体大小(默认 28)--opacity:背景透明度 0-255(默认 230)--radius:圆角半径(默认 10)--margin:距边缘距离(默认 20)处理多张图片:
python scripts/image_processor.py ./images/*.jpg --output-dir ./output --mode frame --text "配文"
脚本会按以下顺序查找中文字体:
C:/Windows/Fonts/msyh.ttc - 微软雅黑C:/Windows/Fonts/simhei.ttf - 黑体C:/Windows/Fonts/simsun.ttc - 宋体如需使用自定义字体:
python scripts/image_processor.py input.jpg output.jpg --font "C:/MyFonts/custom.ttf" --text "配文"
常用颜色值:
| 名称 | 代码 | 用途 |
|---|---|---|
| 白色 | white / #FFFFFF | 边框背景 |
| 黑色 | black / #000000 | 深色背景/文字 |
| 浅橙 | #FFE4B5 | 贴纸背景 |
| 浅蓝 | #E3F2FD | 贴纸背景 |
| 浅绿 | #E8F5E9 | 贴纸背景 |
| 浅粉 | #FCE4EC | 贴纸背景 |
Guides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.
Dispatches multiple subagents concurrently for independent tasks without shared state. Use when facing 2+ unrelated failures or subsystems that can be investigated in parallel.
npx claudepluginhub z0gsh1u/oh-my-writing-skill --plugin oh-my-writing-skill