WeChat Image Generator
Generate beautiful images for WeChat articles with zero token cost and auto-screenshot.
Quick Start
1. Cover Image (封面图)
python3 scripts/generate.py cover \
--title "我的第一个开源项目" \
--subtitle "Token 成本降低 90%" \
--output output/cover.png
2. Comparison Image (对比图)
python3 scripts/generate.py compare \
--left "# Markdown\n**Bold** text" \
--right "HTML 渲染结果" \
--label "1 秒转换" \
--output output/compare.png
3. Chart Image (数据图)
python3 scripts/generate.py chart \
--data "Token消耗:8000,650|生成耗时:20,1" \
--labels "AI生成,预制模板" \
--output output/chart.png
Workflow
- Run generator script with parameters
- Script creates HTML with embedded data
- Opens in browser via OpenClaw browser tool
- Auto-screenshot and save to output folder
Design Philosophy
Zero token cost: All templates are pre-built HTML/CSS Auto-screenshot: Integrated with OpenClaw browser tool Customizable: Easy to modify templates for different styles
Token Cost Analysis
Per image generation:
- Read SKILL.md: ~500 tokens (first time only)
- Execute script: ~100 tokens
- Browser screenshot: ~50 tokens
Total: ~650 tokens vs DALL-E/Midjourney ~1000-5000 tokens per image.
Requirements
- Python 3
- OpenClaw browser tool (for auto-screenshot)
📦 元子公众号图文系列
🦞 yuanzi-wechat-series · 第 3/4 站「配图帆」
本技能属于「元子公众号图文系列」4 件套之一:
- 写作舵 —
wechat-article-master - 读稿锚 —
wechat-article-extractor-skill - 配图帆 —
wechat-image-generator(本技能) - 发布桨 —
wechat-article-publisher
推荐工作流:读稿 → 写作 → 配图 → 发布。
v1.0.3 元子系列升级:归 jingyu525 v1.0.2,加入元子系列 tag + 导航。
🦞 元子公众号图文系列 v1.0.3 · 2026-07-04 · 元子系列首发
