Instagram 照片文字叠加:自动化社交媒体视觉效果 - Openclaw Skills
作者:互联网
2026-03-30
什么是 In@stagram 照片文字叠加?
In@stagram 照片文字叠加技能是一款功能强大的实用程序,旨在将原始摄影作品转化为高互动性的社交媒体内容。通过将此工具与 Openclaw Skills 集成,用户可以以编程方式为图像添加精致的排版、品牌水印和提高可读性的渐变效果。它专门针对 4:5 的纵向宽高比,这是 In@stagram 动态中可见度的黄金标准。
该技能通过为不同内容类型提供预定义模板,消除了手动平面设计的需求。无论您是在构建旅行行程还是品牌引用,Openclaw Skills 都能通过比例字体缩放和智能裁剪,确保输出内容的一致性、高质量和视觉平衡。
下载入口:https://github.com/openclaw/skills/tree/main/skills/psyduckler/instagram-photo-text-overlay
安装与下载
1. ClawHub CLI
从源直接安装技能的最快方式。
npx clawhub@latest install instagram-photo-text-overlay
2. 手动安装
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
/skills/
优先级:工作区 > 本地 > 内置
3. 提示词安装
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 instagram-photo-text-overlay。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
In@stagram 照片文字叠加 应用场景
- 为旅行行程或城市指南创建多滑块 In@stagram 轮播图。
- 生成带有结构化描述的品牌前 5 名或前 10 名列表。
- 为社交媒体故事讲述设计高影响力的封面幻灯片。
- 自动化制作营销活动中的证言或引用类图形。
- 使用 Openclaw Skills 脚本批量处理照片以实现一致的品牌推广。
- 用户提供输入图像以及文本数据,如标题、副标题或项目列表。
- 脚本通过 Openclaw Skills 框架处理输入参数,以确定所需的视觉风格(简洁、列表或引用)。
- 图像会自动裁剪并调整大小为 4:5 的纵向宽高比(通常为 1080x1350)。
- 背景应用半透明渐变,以确保无论照片亮度如何,文字都清晰易读。
- 使用 Pillow 渲染排版和可选装饰,根据图像分辨率动态缩放字体大小。
- 导出具有优化质量设置的最终 JPEG 帖子。
In@stagram 照片文字叠加 配置指南
要在 Openclaw Skills 生态系统中使用此技能,请确保您已安装 Python 3 和 Pillow 库。
pip install Pillow
通过 CLI 使用所需的参数执行脚本:
python3 scripts/overlay.py r
--input source_photo.jpg r
--output instagram_post.jpg r
--title "LONDON" r
--subtitle "Top 3 Hidden Gems" r
--style list
In@stagram 照片文字叠加 数据架构与分类体系
该技能通过特定的命令行标志组织元数据和样式。以下是用于生成视觉效果的数据分类:
| 属性 | 格式 | 用途 |
|---|---|---|
| title | 字符串 | 主标题(自动转大写) |
| items | JSON 数组 | 管道符分隔的字符串列表 ("名称|描述") |
| style | 枚举 | 从简洁、列表或引用布局中选择 |
| accent | RGB 字符串 | 定义数字和 UI 装饰的颜色 (例如 255,220,150) |
| watermark | 字符串 | 放置在左上角的品牌文本 |
name: instagram-photo-text-overlay
description: Overlay text on photos for In@stagram posts. Generates portrait (4:5) images with gradient overlays, titles, and optional numbered lists. Use when creating In@stagram content that needs text on top of a photo — destination itineraries, top-5 lists, travel highlights, or any branded social image with text overlay.
In@stagram Photo Text Overlay
Overlay text onto photos for In@stagram-ready images. Two styles: list (title + numbered items) and clean (title only).
Quick Start
python3 scripts/overlay.py r
--input photo.jpg r
--output result.jpg r
--title "TAORMINA" r
--subtitle "3-Day Trip Itinerary" r
--items '["Teatro Greco|Ancient theatre with Etna views", "Isola Bella|Crystal-clear beach"]' r
--style list
Options
| Flag | Default | Description |
|---|---|---|
--input |
(required) | Source photo path |
--output |
(required) | Output image path |
--title |
(required) | Main title (auto-uppercased) |
--subtitle |
"3-Day Trip Itinerary" |
Subtitle below title |
--items |
[] |
JSON array of "Name|Reason" strings (list style) |
--watermark |
"tabiji.ai" |
Top-left watermark (empty string to disable) |
--accent |
255,220,150 |
Accent color for numbers/tags (R,G,B) |
--quote |
"" |
Quote text (for quote style) |
--style |
list |
list / clean / quote |
--quality |
95 |
JPEG output quality |
Styles
- clean: Cover slide. Big title = destination + category + count (e.g. "7 unique cheap eats in barcelona spain"). Subtitle = credibility/source line (e.g. "Insider takes from r/barcelona"). Best as carousel first slide.
- list: Content slides. Title + subtitle + divider + numbered items with reasons. Best for top-5 / itinerary posts.
- quote: Title with accent bar on the left + blockquote text below. No subtitle or divider. Best for travel quotes, testimonials, or key takeaways.
Workflow
- Receive photo + destination/topic + list of items from user
- Run
scripts/overlay.pywith appropriate args - Output is auto-cropped to 4:5 portrait (In@stagram optimal)
- Review output and adjust if needed (font sizes scale with image width)
Requirements
- Python 3 + Pillow (
pip install Pillow) - Works on macOS (Helvetica) and Linux (DejaVu/Liberation fallback)
Tips
- Items format:
"Name|Short reason"— the pipe separates bold name from description - For destinations, pull top picks from existing itineraries when available
- Gradient + white text ensures readability on any photo
- All font sizes are proportional to image width — works at any resolution
相关推荐
专题
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
最新数据
相关文章
工程经理操作系统:技术领导力与团队扩展 - Openclaw Skills
Markdown 报告生成器:专业文档制作 - Openclaw Skills
Business Claw:ERPNext MCP 自动化与工作流 - Openclaw 技能
Context Engineer:Openclaw 技能的 Token 优化专家
韩国发票:自动化估价单与税务发票 - Openclaw Skills
小红书文案教练:爆款笔记生成器 - Openclaw Skills
慕尼黑 MVG & S-Bahn 实时追踪命令行工具 - Openclaw Skills
Reddit 研究技能:自动化社群洞察 - Openclaw Skills
豆包聊天:带有联网搜索功能的免费 AI 对话 - Openclaw Skills
NightPatch:自动化工作流优化 - Openclaw 技能
AI精选
