Banner Creator - 広告バナー/クリエイティブ生成
各種SNS・広告プラットフォーム向けのバナー/クリエイティブを生成します。
機能
- プラットフォーム別プリセット: X, Facebook, Instagram, PRタイムズ, YouTube, LINE, Web広告
- トーン・スタイル設定: プロフェッショナル、ポップ、エレガントなど
- 参考画像検索: キーワードからWeb検索で参考画像を取得
- コピーテキスト生成: 投稿文・ハッシュタグ・CTAを同時生成
プラットフォーム別サイズ
| Platform |
Size |
Aspect Ratio |
| x_post |
1200x675 |
16:9 |
| x_card |
800x418 |
1.91:1 |
| facebook |
1200x630 |
1.91:1 |
| facebook_story |
1080x1920 |
9:16 |
| instagram_feed |
1080x1080 |
1:1 |
| instagram_story |
1080x1920 |
9:16 |
| prtimes |
1200x630 |
1.91:1 |
| youtube |
1280x720 |
16:9 |
| line |
1040x1040 |
1:1 |
| web_horizontal |
1200x628 |
1.91:1 |
| web_vertical |
300x600 |
1:2 |
Usage
# Basic usage
python scripts/banner_creator.py --platform x_post --message "キャッチコピー"
# With copy text generation
python scripts/banner_creator.py --platform instagram_feed --message "新商品発売" --with-copy
# With reference image search
python scripts/banner_creator.py --platform facebook --message "セール" --search-ref "EC セール バナー"
# Full options
python scripts/banner_creator.py \
--platform x_post \
--message "メインメッセージ" \
--sub-copy "サブコピー" \
--cta "今すぐ登録" \
--tone professional \
--color-scheme cool \
--font-style bold \
--priority ctr \
--brand-name "会社名" \
--session "campaign_name" \
--with-copy \
--variants 3
Parameters
| Parameter |
Required |
Default |
Description |
| --platform |
Yes |
- |
Target platform (see table above) |
| --message |
Yes |
- |
Main headline/catchphrase |
| --sub-copy |
No |
- |
Sub-headline or details |
| --cta |
No |
- |
Call-to-action text |
| --tone |
No |
professional |
Tone: professional, casual, pop, elegant, urgent, minimal, tech, natural |
| --color-scheme |
No |
auto |
Color: warm, cool, mono, pastel, vivid, dark, or HEX code |
| --font-style |
No |
auto |
Font: gothic, mincho, handwritten, bold, script, geometric |
| --priority |
No |
ctr |
Focus: ctr, brand, info, emotion, product, event |
| --brand-name |
No |
- |
Brand/company name to display |
| --reference |
No |
- |
Local path or URL to reference image |
| --search-ref |
No |
- |
Keywords to search for reference images |
| --session |
No |
- |
Session name for organizing output |
| --with-copy |
No |
false |
Generate copy text along with image |
| --variants |
No |
1 |
Number of variations to generate |
| --output |
No |
auto |
Output file path |
Output
- Image:
docs/generated/banners/{date}_{session}/{filename}.png
- Copy text (when --with-copy): Saved as
{filename}_copy.md
- 3 post text variations
- Hashtag suggestions
- CTA phrases
Examples
X Post Banner
python scripts/banner_creator.py \
--platform x_post \
--message "AI時代の働き方改革" \
--sub-copy "無料ウェビナー開催" \
--cta "今すぐ登録" \
--tone professional \
--with-copy
Instagram Feed with Reference Search
python scripts/banner_creator.py \
--platform instagram_feed \
--message "Summer Collection" \
--tone pop \
--color-scheme vivid \
--search-ref "fashion summer sale instagram"
PRTimes Press Release Image
python scripts/banner_creator.py \
--platform prtimes \
--message "新サービスリリースのお知らせ" \
--brand-name "株式会社〇〇" \
--tone professional \
--priority info
Requirements
- GEMINI_API_KEY or GOOGLE_API_KEY in environment
- Python packages: google-genai, Pillow, python-dotenv, requests
1---2name: banner-creator3description: Generate advertising banners and creatives for various platforms (X, Facebook, Instagram, PRTimes, YouTube, LINE, Web ads). Supports platform-specific presets, reference image search, and copy text generation. Use when creating social media posts, ads, or promotional materials.4---5
6# Banner Creator - 広告バナー/クリエイティブ生成
7
8各種SNS・広告プラットフォーム向けのバナー/クリエイティブを生成します。
9
10## 機能
11
121. **プラットフォーム別プリセット**: X, Facebook, Instagram, PRタイムズ, YouTube, LINE, Web広告
132. **トーン・スタイル設定**: プロフェッショナル、ポップ、エレガントなど
143. **参考画像検索**: キーワードからWeb検索で参考画像を取得
154. **コピーテキスト生成**: 投稿文・ハッシュタグ・CTAを同時生成
16
17## プラットフォーム別サイズ
18
19| Platform | Size | Aspect Ratio |
20|----------|------|--------------|
21| x_post | 1200x675 | 16:9 |
22| x_card | 800x418 | 1.91:1 |
23| facebook | 1200x630 | 1.91:1 |
24| facebook_story | 1080x1920 | 9:16 |
25| instagram_feed | 1080x1080 | 1:1 |
26| instagram_story | 1080x1920 | 9:16 |
27| prtimes | 1200x630 | 1.91:1 |
28| youtube | 1280x720 | 16:9 |
29| line | 1040x1040 | 1:1 |
30| web_horizontal | 1200x628 | 1.91:1 |
31| web_vertical | 300x600 | 1:2 |
32
33## Usage
34
35```bash
36# Basic usage
37python scripts/banner_creator.py --platform x_post --message "キャッチコピー"
38
39# With copy text generation
40python scripts/banner_creator.py --platform instagram_feed --message "新商品発売" --with-copy
41
42# With reference image search
43python scripts/banner_creator.py --platform facebook --message "セール" --search-ref "EC セール バナー"
44
45# Full options
46python scripts/banner_creator.py \
47 --platform x_post \
48 --message "メインメッセージ" \
49 --sub-copy "サブコピー" \
50 --cta "今すぐ登録" \
51 --tone professional \
52 --color-scheme cool \
53 --font-style bold \
54 --priority ctr \
55 --brand-name "会社名" \
56 --session "campaign_name" \
57 --with-copy \
58 --variants 3
59```
60
61## Parameters
62
63| Parameter | Required | Default | Description |
64|-----------|----------|---------|-------------|
65| --platform | Yes | - | Target platform (see table above) |
66| --message | Yes | - | Main headline/catchphrase |
67| --sub-copy | No | - | Sub-headline or details |
68| --cta | No | - | Call-to-action text |
69| --tone | No | professional | Tone: professional, casual, pop, elegant, urgent, minimal, tech, natural |
70| --color-scheme | No | auto | Color: warm, cool, mono, pastel, vivid, dark, or HEX code |
71| --font-style | No | auto | Font: gothic, mincho, handwritten, bold, script, geometric |
72| --priority | No | ctr | Focus: ctr, brand, info, emotion, product, event |
73| --brand-name | No | - | Brand/company name to display |
74| --reference | No | - | Local path or URL to reference image |
75| --search-ref | No | - | Keywords to search for reference images |
76| --session | No | - | Session name for organizing output |
77| --with-copy | No | false | Generate copy text along with image |
78| --variants | No | 1 | Number of variations to generate |
79| --output | No | auto | Output file path |
80
81## Output
82
83- **Image**: `docs/generated/banners/{date}_{session}/{filename}.png`
84- **Copy text** (when --with-copy): Saved as `{filename}_copy.md`
85 - 3 post text variations
86 - Hashtag suggestions
87 - CTA phrases
88
89## Examples
90
91### X Post Banner
92```bash
93python scripts/banner_creator.py \
94 --platform x_post \
95 --message "AI時代の働き方改革" \
96 --sub-copy "無料ウェビナー開催" \
97 --cta "今すぐ登録" \
98 --tone professional \
99 --with-copy
100```
101
102### Instagram Feed with Reference Search
103```bash
104python scripts/banner_creator.py \
105 --platform instagram_feed \
106 --message "Summer Collection" \
107 --tone pop \
108 --color-scheme vivid \
109 --search-ref "fashion summer sale instagram"
110```
111
112### PRTimes Press Release Image
113```bash
114python scripts/banner_creator.py \
115 --platform prtimes \
116 --message "新サービスリリースのお知らせ" \
117 --brand-name "株式会社〇〇" \
118 --tone professional \
119 --priority info
120```
121
122## Requirements
123
124- GEMINI_API_KEY or GOOGLE_API_KEY in environment
125- Python packages: google-genai, Pillow, python-dotenv, requests