Install
openclaw skills install poster-generatorGenerate professional marketing posters, social media graphics, and event flyers using AI-driven templates, customizable text, colors, and batch output in PN...
openclaw skills install poster-generatorAI-Powered Poster Generation Tool - ClawHub Agent Guide
AI 驱动的海报生成工具 - ClawHub Agent 使用指南
An AI-powered poster generation tool that helps you create professional marketing posters, social media graphics, event flyers, and promotional materials with simple commands or templates.
Key Features:
AI 驱动的海报生成工具,帮助您通过简单的命令或模板创建专业的营销海报、社交媒体图片、活动传单和宣传物料。
核心功能:
English:
中文:
{
"dependencies": {
"canvas": "^2.11.0",
"sharp": "^0.32.0",
"jimp": "^0.22.0",
"axios": "^1.6.0",
"commander": "^11.1.0"
}
}
English:
# Method 1: Install via npm
npm install -g openclaw-poster-generator
# Method 2: Clone repository
git clone https://github.com/ZhenRobotics/openclaw-poster-generator.git
cd openclaw-poster-generator
npm install
中文:
# 方式 1: 通过 npm 安装
npm install -g openclaw-poster-generator
# 方式 2: 克隆仓库
git clone https://github.com/ZhenRobotics/openclaw-poster-generator.git
cd openclaw-poster-generator
npm install
English:
# Generate poster from template
poster-gen create \
--template marketing \
--title "Summer Sale" \
--subtitle "Up to 50% OFF" \
--output poster.png
# Use custom colors
poster-gen create \
--template event \
--title "Tech Conference 2024" \
--colors "#FF6B6B,#4ECDC4" \
--output event.png
中文:
# 从模板生成海报
poster-gen create \
--template marketing \
--title "夏季促销" \
--subtitle "最高 5 折优惠" \
--output poster.png
# 使用自定义颜色
poster-gen create \
--template event \
--title "2024 技术大会" \
--colors "#FF6B6B,#4ECDC4" \
--output event.png
English:
Marketing Campaign Creation
User: "Create 10 marketing posters for our summer sale"
Agent: Generates batch posters with consistent branding
Social Media Content
User: "Make Instagram posts for the next week"
Agent: Creates optimized 1080x1080 graphics
Event Promotion
User: "Design a poster for our tech conference"
Agent: Generates professional event flyer
中文:
营销活动创建
用户: "为我们的夏季促销创建 10 张营销海报"
Agent: 生成具有一致品牌风格的批量海报
社交媒体内容
用户: "制作下周的 Instagram 帖子"
Agent: 创建优化的 1080x1080 图片
活动推广
用户: "为我们的技术大会设计海报"
Agent: 生成专业的活动传单
TypeScript / Node.js:
import { PosterGenerator } from 'openclaw-poster-generator';
async function generatePoster(title: string, subtitle: string) {
const generator = new PosterGenerator({
template: 'marketing',
outputFormat: 'png',
width: 1920,
height: 1080
});
const result = await generator.create({
title: title,
subtitle: subtitle,
colors: ['#FF6B6B', '#4ECDC4'],
images: ['./background.jpg'],
fonts: {
title: 'Arial Bold',
subtitle: 'Arial'
}
});
return result.outputPath;
}
Bash Script:
#!/bin/bash
# Agent batch poster generation script
TEMPLATE="marketing"
OUTPUT_DIR="./posters"
for i in {1..10}; do
echo "Generating poster $i..."
poster-gen create \
--template "$TEMPLATE" \
--title "Poster $i" \
--output "$OUTPUT_DIR/poster-$i.png"
sleep 1
done
English:
| Template | Description | Use Case |
|---|---|---|
marketing | Bold, eye-catching design | Product promotions, sales |
event | Professional event layout | Conferences, workshops |
social | Optimized for social media | Instagram, Facebook posts |
minimal | Clean, modern style | Corporate, professional |
creative | Artistic, colorful | Art events, creative projects |
中文:
| 模板 | 描述 | 使用场景 |
|---|---|---|
marketing | 大胆醒目的设计 | 产品促销、销售活动 |
event | 专业的活动布局 | 会议、研讨会 |
social | 为社交媒体优化 | Instagram、Facebook 帖子 |
minimal | 简洁现代风格 | 企业、专业场合 |
creative | 艺术、多彩 | 艺术活动、创意项目 |
English:
中文:
English:
中文:
English:
# Install system fonts
sudo apt-get install fonts-liberation
# Or specify custom font path
poster-gen create --font-path ./fonts/
中文:
# 安装系统字体
sudo apt-get install fonts-liberation
# 或指定自定义字体路径
poster-gen create --font-path ./fonts/
English:
# Use higher DPI
poster-gen create --dpi 300 --quality 100
中文:
# 使用更高 DPI
poster-gen create --dpi 300 --quality 100
English:
# Increase Node.js memory
NODE_OPTIONS="--max-old-space-size=4096" poster-gen create
中文:
# 增加 Node.js 内存
NODE_OPTIONS="--max-old-space-size=4096" poster-gen create
English:
中文:
English: We welcome contributions!
中文: 欢迎贡献代码!
For technical support and consulting services, you can reach out to our official partner:
Official Maintenance Partner:
如需技术支持和咨询服务,可以联系我们的官方合作伙伴:
官方维护合作伙伴:
如何联系 / How to Contact:
Create stunning posters with AI! / 用 AI 创建精美海报! ✨🎨