Social Poster Hardened
通过 VibePost API 发布内容至社交媒体,支持 Twitter/X 等平台。
下载 477
支持中英文的通用海报与图像生成,可自动切换AI、HTML或纯文本渲染模式。
openclaw skills install @huuuwnnn-droid/poster-forge命令、参数、文件名以原文为准
通用海报/图片生成工具,支持 3 种引擎及自动降级机制。
| 引擎 | 方式 | 适用场景 | 可靠性 |
|---|---|---|---|
ai | Pollinations.ai(flux 模型) | 艺术风格或照片背景 | ~90%(依赖网络) |
html | Chromium 无头截图 | 精确布局、文字密集内容 | ~99%(需安装 Chromium) |
text | PIL 实心色块 + 文字叠加 | 简单文字海报 | 100% |
默认模式为 auto:优先尝试 AI → HTML → 文本降级。
# 使用 AI 背景生成简单海报
python3 scripts/generate.py --title "你的标题" --prompt "watercolor sunset" --output poster.jpg
# 分屏对比(HTML 引擎,无需网络)
python3 scripts/generate.py --title "A vs B" --mode html --template split \
--left-label "方案A" --right-label "方案B" \
--left-items "优点1|优点2" --right-items "优点1|优点2" --output compare.jpg
# 教程卡片
python3 scripts/generate.py --title "教程标题" --mode html --template tutorial \
--code-content "print('hello')" --tagline "底部提示语" --output tutorial.jpg--title(必填):主标题--subtitle:副标题--tagline:底部标语--mode:ai | html | text | auto(默认:auto)--output:输出文件路径--template:split | gradient | card | tutorial--preset:xiaohongshu(1080×1440)| wechat(900×500)| instagram(1080×1080)| twitter(1200×675)| a4(2480×3508)--width / --height:自定义尺寸--left-label / --right-label:左右侧标签--left-items / --right-items:用竖线分隔的内容项--left-color / --right-color:R,G,B 颜色值--text-position:bottom | center | top | none--font-title-size / --font-sub-size:字体大小--no-overlay:跳过 PIL 文字叠加(当 HTML 已包含文字时使用)--prompt:用于 Pollinations.ai 的英文描述auto 用于灵活适配,html 用于高可靠性,ai 用于视觉美感scripts/generate.pyhtml 模式并指定 --template,请添加 --no-overlay(因文本已嵌入 HTML)已收录 1 个 Skill