cover-image
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCover Image Generator
封面图生成器
Generate elegant cover images for articles with 5-dimensional customization. Supports Chinese text rendering.
通过5维度自定义生成精美的文章封面图,支持中文文本渲染。
Usage
使用方法
bash
undefinedbash
undefinedAuto-select dimensions based on content
根据内容自动选择维度
/cover-image path/to/article.md
/cover-image path/to/article.md
Quick mode: skip confirmation
快速模式:跳过确认步骤
/cover-image article.md --quick
/cover-image article.md --quick
Specify dimensions
指定维度参数
/cover-image article.md --type conceptual --palette warm --rendering flat-vector
/cover-image article.md --type conceptual --palette warm --rendering flat-vector
WeChat Official Account cover
微信公众号封面
/cover-image article.md --aspect 2.35:1
/cover-image article.md --aspect 2.35:1
Specify provider
指定生成提供商
/cover-image article.md --provider qwen
/cover-image article.md --provider qwen
Use style preset
使用预设风格
/cover-image article.md --style tech-dark
/cover-image article.md --style tech-dark
Large font for better visibility
大字体提升可见度
/cover-image article.md --font-size large
/cover-image article.md --font-size large
Generate multiple options
生成多个备选封面
/cover-image article.md --n 3
/cover-image article.md --n 3
With reference images (Google/OpenAI only)
参考图片生成(仅支持Google/OpenAI)
/cover-image article.md --ref style-ref.png
/cover-image article.md --ref style-ref.png
Direct content input
直接输入内容生成
/cover-image --palette mono --aspect 1:1 --quick
[paste content]
undefined/cover-image --palette mono --aspect 1:1 --quick
[paste content]
undefinedOptions
可选参数
| Option | Description |
|---|---|
| hero, conceptual, typography, metaphor, scene, minimal |
| warm, elegant, cool, dark, earth, vivid, pastel, mono, retro |
| flat-vector, hand-drawn, painterly, digital, pixel, chalk |
| none, title-only, title-subtitle, text-rich |
| subtle, balanced, bold |
| clean, handwritten, serif, display |
| small, medium (default), large, xlarge |
| 16:9 (default), 2.35:1 (公众号封面), 4:3, 3:2, 1:1, 3:4 |
| qwen (default), openai, google |
| tech-dark, tech-clean, lifestyle-warm, business-elegant, announcement-bold, minimal-zen, creative-playful, retro-vintage |
| Title language (en, zh, ja, etc.) |
| Alias for |
| Number of images to generate (1-4) |
| Skip confirmation, use auto-selection |
| Reference images for style/composition guidance |
| 参数 | 说明 |
|---|---|
| 封面类型:hero, conceptual, typography, metaphor, scene, minimal |
| 配色方案:warm, elegant, cool, dark, earth, vivid, pastel, mono, retro |
| 渲染风格:flat-vector, hand-drawn, painterly, digital, pixel, chalk |
| 文本呈现:none, title-only, title-subtitle, text-rich |
| 氛围风格:subtle, balanced, bold |
| 字体类型:clean, handwritten, serif, display |
| 字体大小:small, medium(默认), large, xlarge |
| 比例:16:9(默认), 2.35:1(公众号封面), 4:3, 3:2, 1:1, 3:4 |
| 生成提供商:qwen(默认), openai, google |
| 预设风格:tech-dark, tech-clean, lifestyle-warm, business-elegant, announcement-bold, minimal-zen, creative-playful, retro-vintage |
| 标题语言(en, zh, ja等) |
| |
| 生成图片数量(1-4张) |
| 跳过确认步骤,使用自动选择配置 |
| 用于风格/构图参考的图片 |
Providers
生成提供商
| Provider | Model | Text Rendering | Chinese Support | Price |
|---|---|---|---|---|
| qwen-image-plus | Excellent | Native Chinese | 0.2 CNY/image |
| gpt-image-1 | Good | Limited | ~$0.04/image |
| gemini-2.0-flash-exp | Good | Limited | Free tier available |
| 提供商 | 模型 | 文本渲染 | 中文支持 | 价格 |
|---|---|---|---|---|
| qwen-image-plus | 优秀 | 原生中文支持 | 0.2元/张 |
| gpt-image-1 | 良好 | 有限支持 | ~0.04美元/张 |
| gemini-2.0-flash-exp | 良好 | 有限支持 | 提供免费额度 |
Provider Selection Logic
提供商选择逻辑
- specified -> use it
--provider - Chinese title detected -> auto-select
qwen - Reference images provided -> use or
googleopenai - Default ->
qwen
- 指定参数时,使用指定的提供商
--provider - 检测到中文标题时,自动选择
qwen - 提供参考图片时,使用或
googleopenai - 默认使用
qwen
Qwen-Image (Default)
Qwen-Image(默认)
Best for Chinese text rendering. Native support for Chinese characters.
API Endpoint:
https://dashscope.aliyuncs.com/api/v1/services/aigc/text2image/image-synthesisEnvironment Variable:
DASHSCOPE_API_KEYSupported Sizes: , , , ,
1664*9281024*1024928*16641472*11041104*1472最适合中文文本渲染,原生支持中文字符。
API端点:
https://dashscope.aliyuncs.com/api/v1/services/aigc/text2image/image-synthesis环境变量:
DASHSCOPE_API_KEY支持尺寸:, , , ,
1664*9281024*1024928*16641472*11041104*1472OpenAI
OpenAI
Good for English text and creative designs.
Environment Variable:
OPENAI_API_KEYSupported Sizes: , ,
1024x10241536x10241024x1536适合英文文本和创意设计。
环境变量:
OPENAI_API_KEY支持尺寸:, ,
1024x10241536x10241024x1536Good for multimodal generation with reference images.
Environment Variable:
GOOGLE_API_KEYSupported Sizes: Various aspect ratios supported
适合结合参考图片的多模态生成。
环境变量:
GOOGLE_API_KEY支持尺寸:支持多种比例
Five Dimensions
5个自定义维度
| Dimension | Values | Default |
|---|---|---|
| Type | hero, conceptual, typography, metaphor, scene, minimal | auto |
| Palette | warm, elegant, cool, dark, earth, vivid, pastel, mono, retro | auto |
| Rendering | flat-vector, hand-drawn, painterly, digital, pixel, chalk | auto |
| Text | none, title-only, title-subtitle, text-rich | title-only |
| Mood | subtle, balanced, bold | balanced |
| Font | clean, handwritten, serif, display | clean |
Auto-selection rules: references/auto-selection.md
| 维度 | 可选值 | 默认值 |
|---|---|---|
| 类型 | hero, conceptual, typography, metaphor, scene, minimal | 自动选择 |
| 配色 | warm, elegant, cool, dark, earth, vivid, pastel, mono, retro | 自动选择 |
| 渲染风格 | flat-vector, hand-drawn, painterly, digital, pixel, chalk | 自动选择 |
| 文本呈现 | none, title-only, title-subtitle, text-rich | title-only |
| 氛围 | subtle, balanced, bold | balanced |
| 字体 | clean, handwritten, serif, display | clean |
自动选择规则:references/auto-selection.md
Galleries
效果示例库
Types: hero, conceptual, typography, metaphor, scene, minimal
-> Details: references/types.md
Palettes: warm, elegant, cool, dark, earth, vivid, pastel, mono, retro
-> Details: references/palettes/
Renderings: flat-vector, hand-drawn, painterly, digital, pixel, chalk
-> Details: references/renderings/
Text Levels: none (pure visual) | title-only (default) | title-subtitle | text-rich (with tags)
-> Details: references/dimensions/text.md
Mood Levels: subtle (low contrast) | balanced (default) | bold (high contrast)
-> Details: references/dimensions/mood.md
Fonts: clean (sans-serif) | handwritten | serif | display (bold decorative)
-> Details: references/dimensions/font.md
类型:hero, conceptual, typography, metaphor, scene, minimal
-> 详情:references/types.md
配色方案:warm, elegant, cool, dark, earth, vivid, pastel, mono, retro
-> 详情:references/palettes/
渲染风格:flat-vector, hand-drawn, painterly, digital, pixel, chalk
-> 详情:references/renderings/
文本呈现级别:none(纯视觉)| title-only(默认)| title-subtitle | text-rich(含标签)
-> 详情:references/dimensions/text.md
氛围级别:subtle(低对比度)| balanced(默认)| bold(高对比度)
-> 详情:references/dimensions/mood.md
字体类型:clean(无衬线)| handwritten | serif | display(粗体装饰性)
-> 详情:references/dimensions/font.md
File Structure
文件结构
Output directory per preference:
default_output_dir- :
same-dir{article-dir}/ - :
imgs-subdir{article-dir}/imgs/ - (default):
independentcover-image/{topic-slug}/
<output-dir>/
├── source-{slug}.{ext} # Source files
├── refs/ # Reference images (if provided)
│ ├── ref-01-{slug}.{ext}
│ └── ref-01-{slug}.md # Description file
├── prompts/cover.md # Generation prompt
└── cover.png # Output imageSlug: 2-4 words, kebab-case. Conflict: append
-YYYYMMDD-HHMMSS输出目录根据偏好设置:
default_output_dir- :
same-dir{文章目录}/ - :
imgs-subdir{文章目录}/imgs/ - (默认):
independentcover-image/{主题-slug}/
<输出目录>/
├── source-{slug}.{ext} # 源文件
├── refs/ # 参考图片(若提供)
│ ├── ref-01-{slug}.{ext}
│ └── ref-01-{slug}.md # 描述文件
├── prompts/cover.md # 生成提示词
└── cover.png # 输出图片Slug:2-4个单词,短横线分隔。若重名,追加
-YYYYMMDD-HHMMSSWorkflow
工作流程
Progress Checklist
进度检查清单
Cover Image Progress:
- [ ] Step 1: Analyze content + save refs + determine output dir
- [ ] Step 2: Confirm options (6 dimensions + provider) unless --quick
- [ ] Step 3: Create prompt
- [ ] Step 4: Generate image
- [ ] Step 5: Resize for platform (if needed)
- [ ] Step 6: Completion report封面图生成进度:
- [ ] 步骤1:分析内容 + 保存参考图 + 确定输出目录
- [ ] 步骤2:确认参数(6个维度 + 提供商),使用--quick时跳过
- [ ] 步骤3:创建生成提示词
- [ ] 步骤4:生成图片
- [ ] 步骤5:根据平台调整尺寸(若需要)
- [ ] 步骤6:生成完成报告Step 1: Analyze Content
步骤1:内容分析
- Save reference images (if provided) -> references/workflow/reference-images.md
- Save source content (if pasted, save to )
source.md - Analyze content: topic, tone, keywords, visual metaphors
- Deep analyze references: Extract specific, concrete elements
- Detect language: Compare source, user input
- Determine output directory: Per File Structure rules
- Auto-select provider: Based on language and references
- 保存参考图片(若提供)-> references/workflow/reference-images.md
- 保存源内容(若直接粘贴内容,保存到)
source.md - 分析内容:主题、语气、关键词、视觉隐喻
- 深度分析参考图:提取具体、明确的元素
- 检测语言:对比源内容和用户输入
- 确定输出目录:按照文件结构规则
- 自动选择提供商:基于语言和参考图
Step 2: Confirm Options
步骤2:确认参数
Full confirmation flow: references/workflow/confirm-options.md
| Condition | Skipped | Still Asked |
|---|---|---|
| 6 dimensions + provider | Aspect ratio (unless |
All 6 + | All | None |
完整确认流程:references/workflow/confirm-options.md
| 条件 | 跳过确认 | 仍需确认 |
|---|---|---|
使用 | 6个维度 + 提供商 | 比例(除非指定 |
已指定全部6个维度 + | 全部 | 无 |
Step 3: Create Prompt
步骤3:创建提示词
Save to . Template: references/workflow/prompt-template.md
prompts/cover.mdCRITICAL - References in Frontmatter:
- Files saved to -> Add to frontmatter
refs/listreferences - Style extracted verbally (no file) -> Omit , describe in body
references - Before writing -> Verify:
test -f refs/ref-NN-{slug}.{ext}
Reference elements in body MUST be detailed, prefixed with "MUST"/"REQUIRED", with integration approach.
保存到。模板:references/workflow/prompt-template.md
prompts/cover.md关键 - 参考图在前置元数据中:
- 保存到的文件 -> 添加到前置元数据
refs/列表references - 仅提取风格描述(无文件)-> 省略,在正文中描述
references - 编写前验证:
test -f refs/ref-NN-{slug}.{ext}
正文中的参考元素必须详细描述,前缀为“必须”/“要求”,并说明整合方式。
Step 4: Generate Image
步骤4:生成图片
- Backup existing if regenerating
cover.png - Select provider based on language and options
- Process references from prompt frontmatter:
- usage -> pass reference images directly (google/openai only)
direct - /
style-> extract traits, append to promptpalette
- Generate via provider API:
- Qwen: POST to dashscope API, poll for result
- OpenAI: Use ImageGen tool or API
- Google: Use ImageGen tool with reference images
- On failure: auto-retry once
- 备份现有(若重新生成)
cover.png - 选择提供商:基于语言和参数设置
- 处理提示词中的参考图:
- 使用方式 -> 直接传入参考图片(仅google/openai支持)
direct - /
style使用方式 -> 提取特征,追加到提示词palette
- 通过提供商API生成:
- Qwen:向dashscope API发送POST请求,轮询获取结果
- OpenAI:使用ImageGen工具或API
- Google:使用ImageGen工具结合参考图片
- 生成失败时:自动重试一次
Step 5: Resize for Platform
步骤5:根据平台调整尺寸
Resize generated image to target platform size:
| Platform | Target Size | Aspect Ratio |
|---|---|---|
| 公众号封面 | 900x383 | 2.35:1 |
| 博客/视频 | 1920x1080 | 16:9 |
| 小红书 | 1080x1080 | 1:1 |
| 手机海报 | 1080x1440 | 3:4 |
将生成的图片调整为目标平台尺寸:
| 平台 | 目标尺寸 | 比例 |
|---|---|---|
| 微信公众号封面 | 900x383 | 2.35:1 |
| 博客/视频 | 1920x1080 | 16:9 |
| 小红书 | 1080x1080 | 1:1 |
| 手机海报 | 1080x1440 | 3:4 |
Step 6: Completion Report
步骤6:完成报告
Cover Generated!
Provider: [provider]
Topic: [topic]
Type: [type] | Palette: [palette] | Rendering: [rendering]
Text: [text] | Mood: [mood] | Font: [font] | Aspect: [ratio]
Title: [title or "visual only"]
Language: [lang]
References: [N images or "extracted style" or "none"]
Location: [directory path]
Files:
- source-{slug}.{ext}
- prompts/cover.md
- cover.png
- cover-{platform}.png (if resized)封面图生成完成!
提供商:[提供商名称]
主题:[主题]
类型:[类型] | 配色:[配色] | 渲染风格:[渲染风格]
文本呈现:[文本级别] | 氛围:[氛围] | 字体:[字体] | 比例:[比例]
标题:[标题或“纯视觉”]
语言:[语言]
参考图:[N张图片或“提取的风格”或“无”]
位置:[目录路径]
生成文件:
- source-{slug}.{ext}
- prompts/cover.md
- cover.png
- cover-{platform}.png(若调整过尺寸)Composition Principles
构图原则
- Whitespace: 40-60% breathing room
- Visual anchor: Main element centered or offset left
- Characters: Simplified silhouettes; NO realistic humans
- Title: Use exact title from user/source; never invent
- 留白:40-60%的呼吸空间
- 视觉锚点:主元素居中或左偏移
- 人物元素:使用简化剪影;禁止使用写实人类形象
- 标题:使用用户/源内容中的准确标题;禁止自行创作
Aspect Ratios
比例说明
| Ratio | Platform | Use Case |
|---|---|---|
| 微信公众号封面 | 公众号首图,900x383px |
| 通用宽屏 | 博客、视频封面 |
| 社交媒体 | 微博、小红书、Instagram |
| 经典比例 | 演示文稿、传统媒体 |
| 摄影标准 | 照片风格封面 |
| 竖版 | 手机端、海报 |
| 比例 | 平台 | 使用场景 |
|---|---|---|
| 微信公众号封面 | 公众号首图,900x383px |
| 通用宽屏 | 博客、视频封面 |
| 社交媒体 | 微博、小红书、Instagram |
| 经典比例 | 演示文稿、传统媒体 |
| 摄影标准 | 照片风格封面 |
| 竖版 | 手机端、海报 |
Environment Variables
环境变量
| Variable | Required For | Get From |
|---|---|---|
| Qwen (default) | https://bailian.console.aliyun.com |
| OpenAI | https://platform.openai.com |
| https://aistudio.google.com |
| 变量 | 适用场景 | 获取地址 |
|---|---|---|
| Qwen(默认) | https://bailian.console.aliyun.com |
| OpenAI | https://platform.openai.com |
| https://aistudio.google.com |
References
参考文档
Dimensions: text.md | mood.md | font.md
Palettes: references/palettes/
Renderings: references/renderings/
Types: references/types.md
Style Presets: references/style-presets.md
Auto-Selection: references/auto-selection.md
Visual Elements: references/visual-elements.md
Workflow: confirm-options.md | prompt-template.md | reference-images.md | qwen-api.md
维度说明:text.md | mood.md | font.md
配色方案:references/palettes/
渲染风格:references/renderings/
封面类型:references/types.md
预设风格:references/style-presets.md
自动选择规则:references/auto-selection.md
视觉元素:references/visual-elements.md
工作流程:confirm-options.md | prompt-template.md | reference-images.md | qwen-api.md