SuperAPI AI Directory

wechat-red-envelope-cover-designer

Design & creation

View repository

Updated 10-16 06:52

About this skill

Skill Overview

Skill Name: wechat-red-envelope-cover-designer Core Functions: Generate cover design images that comply with the WeChat Red Envelope Cover Open Platform specifications, including cover images, cover pendants, bubble pendants, and cover story materials. Applicable Scenarios:

  • Red envelope cover design for holiday themes such as Spring Festival, Mid-Autumn Festival, Valentine's Day, Qixi Festival, Christmas, birthdays, Lantern Festival, Dragon Boat Festival, New Year's Day, and National Day
  • Custom brand campaign theme red envelope cover design
  • Custom red envelope cover needs for enterprises or individuals

Complete Workflow

需求确认 → 制定设计方案 → 生成封面图片 → 交付与审核提醒

Phase One: Requirements Confirmation

Before starting the design, the following key information must be confirmed with the user:

1. Basic Information Confirmation

Cover Theme:

  • Holiday type selection: Spring Festival, Mid-Autumn Festival, Valentine's Day, Qixi Festival, Christmas, birthdays, Lantern Festival, Dragon Boat Festival, New Year's Day, National Day
  • or brand campaign theme

Cover Short Name:

  • Maximum 8 characters
  • Displayed on the red envelope cover
  • Can be: enterprise name or trade name, official account name, video account name, registered trademark

Whether a brand logo is needed:

  • Yes/No
  • If yes, a logo file must be provided (200×200px, ≤100KB)

Target Audience:

  • General users
  • Enterprise clients
  • Specific groups

2. Design Style Confirmation

Overall style selection:

  • Guochao (traditional elements + modern design)
  • Minimalist
  • Illustration
  • 3D
  • Flat design
  • Hand-drawn
  • Cute chibi
  • Retro
  • Other custom styles

Main color preference:

  • Red and gold tones (suitable for festive holidays such as Spring Festival and National Day)
  • Pink and purple tones (suitable for Valentine's Day and Qixi Festival)
  • Blue and white tones (suitable for Mid-Autumn Festival and ice and snow themes)
  • Green tones (suitable for Dragon Boat Festival and environmental protection themes)
  • Custom color description

Element preference:

  • Traditional elements (auspicious clouds, patterns, paper-cut window decorations, etc.)
  • Modern elements (geometric shapes, abstract designs, etc.)
  • Mascot
  • Abstract patterns
  • Specific IP character

3. Material Requirements Confirmation

The user selects the materials to be generated:

  • ☑️ Cover image (required material)
  • ☐ Cover pendant (optional material)
  • ☐ Bubble pendant (optional material)
  • ☐ Cover story images (optional material, maximum 5 images)

4. Special Requirements Confirmation

Whether it includes portraits of people:

  • If yes, a portrait rights authorization letter must be provided (the authorization validity period must be ≥6 months after submission for review)

Whether a registered trademark is used:

  • If yes, a trademark registration certificate must be provided

Whether copyrighted materials are included:

  • If yes, a copyright authorization letter must be provided (the authorization validity period must be ≥6 months after submission for review)

Phase 2: Develop the design plan

Based on the requirements confirmed by the user, present the complete design plan to the user:

Plan presentation format

【设计方案】
━━━━━━━━━━━━━━━━━━━━━━━━
🎨 主题:[主题名称]
📝 封面简称:[简称](≤8字)
🎯 设计风格:[风格描述]
🎨 主色调:[色彩方案]

📦 素材清单:
1. ☑️ 封面图(必需)- 957×1278像素
2. ☐ 封面挂件(可选)- 1053×1746像素
3. ☐ 气泡挂件(可选)- 480×384像素
4. ☐ 封面故事图片(可选)- 750×1250像素 × [数量]
━━━━━━━━━━━━━━━━━━━━━━━━

Plan confirmation

  • After the user confirms that the design plan is correct, proceed to the next phase
  • If there are modification requests, confirm again after adjustments
  • Only after confirmation can image generation begin

Phase 3: Generate cover images

Generate all types of assets strictly in the following order and according to the specifications:

Generation order

  1. Cover image(Required) - 957×1278px
  2. Cover widget(Optional) - 1053×1746px
  3. Bubble widget(Optional) - 480×384px
  4. Cover story image(Optional) - 750×1250px

Image generation steps

Step 1: Select a prompt template

If it is a holiday theme:

  • Use references/festival-prompts.md the corresponding holiday-specific prompt in
  • Ensure the use of elements and color schemes that match the holiday

If it is a custom theme:

  • Use references/prompt-templates.md the general template in
  • Replace variables according to user requirements and supplement details

Step 2: Build the complete prompt

According to the selected template, replace the following variables:

  • [用户选择的风格]: Replace with the specific style confirmed by the user
  • [主色调]: Replace with the color scheme confirmed by the user
  • [主题描述]: Replace with the specific theme name
  • [核心视觉元素描述]: Replace with the core elements confirmed by the user (such as zodiac figures, animals, etc.)
  • [背景设计]: Replace with the specific background description
  • [装饰性元素]: Replace with the decorative elements confirmed by the user

Step 3: Emphasize key composition rules

  • Use references/dimension-specs.md the detailed description of the dimension specification file in

The prompt must include the relevant rules from the dimension specification file, for example the following descriptions:

Cover image composition rules:

  • The main visual elements are concentrated in the middle and lower parts of the image
  • Avoid complex patterns in the upper area to ensure white text is clearly readable
  • The bottom 15% of the image may be obscured; avoid placing key elements there

Cover widget composition rules:

  • Note: The widget should be a pattern or icon with a certain shape and decorative pattern, and should not be a single line or wireframe. The cover widget will be displayed together with the cover image on the red envelope opening page.
  • Size: 1053×1746 pixels, aspect ratio approximately 3:5
  • Editable area:Only the top approximately 324px area is editable(The remaining area is non-editable)
  • Design elements must 100% be located within the top 324px area (including details such as shadows, glows, particles, etc.)
  • The area below the top 324px must remain completely blank/transparent (no opaque pixels may appear)
  • The widget should be a pattern or icon with a certain shape and decorative pattern, and should not be a single line or wireframe.

Bubble widget composition rules:

  • The widget should be a pattern or icon with a certain shape and decorative pattern, and should not be a single line or wireframe. The bubble widget will be displayed together with the cover image on the red envelope bubble.
  • Size: 480×384 pixels, aspect ratio 5:4
  • Editable areas (according to the platform editor diagram):
    • The top 96px is the editable area (elements may appear)
    • The middle 216px is the non-editable area (must be completely transparent and left blank; no opaque pixels may appear)
    • The bottom 72px is the editable area (elements may appear)
  • Elements must not cross the boundary: including shadows, strokes, glows, particles, etc., none may enter the middle 216px non-editable area

Cover story image composition rules:

  • Note: The cover story will be displayed on the red envelope details page to tell the story behind the brand, team, and cover creation, so that brand culture can be conveyed better.
  • Size: 750×1250 pixels, aspect ratio 3:5
  • The top and bottom 10% of the image may be cropped on some devices
  • Key elements should be concentrated in the central 80% of the image
  • Reserve space at the bottom for optional overlaid story description text

Step 4: Emphasize prohibited elements

The prompt must include the following prohibited content:

  • Do not include any text, watermarks, or logos
  • Do not include QR codes, barcodes, or contact information
  • Do not include photos or portraits of real people
  • Do not include brand product images or advertising elements
  • Do not include political, religious, or controversial symbols
  • Content should be suitable for users of all ages

Step 5: Call the image generation tool

  • Use scripts/generate_image tool to generate the initial image. Example command:

    node scripts/generate_image.js -p "日落山脉风景" -f "sunset.png" -a 1:1 -r 2K
    

    The command is explained as follows:

    Parameter Required Description
    -p / --prompt Yes Image description (text-to-image) or editing instruction (image-to-image). Preserve the user's original complete input.
    -f / --filename No Output image path/filename; if not provided, a PNG filename with a timestamp is automatically generated and written to the current directory.
    -a / --aspect-ratio No Image aspect ratio:1:1、16:9、9:16、4:3、3:4、3:2、2:3、5:4、4:5、21:9。
    -r / --resolution No Image resolution:1K / 2K / 4K(must be uppercase). If not provided, it is not specified in the request and is determined by the API side.
    -i / --input-image No Image-to-image input image path; multiple images can be provided (up to 14). Passing this parameter enters edit mode.
  • Set an appropriate description according to the material type

  • Each call can generate multiple images to improve quality

Step 6: Adjust the image size and automatically compress

  • Usescripts/readme.mdthe explanatory content in to understand the image size specifications and intelligent compression strategy

Use scripts/resize_cover.js script to precisely crop, resize, and intelligently compress the generated image:

Script features:

  • Automatically center-crop while maintaining the target ratio
  • Intelligent compression: automatically adjust quality until the WeChat size limit is met
  • Supports batch generation of all sizes
  • Automatically checks file size limits
  • For pendant types, automatically force the safe area to be transparent
  • Display safe area prompts
  • Note: This script does not handle background removal. For background removal, please use remove_bg_enhanced.js

WeChat size limits:

  • Cover image: ≤500KB
  • Cover widget: ≤300KB (PNG transparent)
  • Bubble widget: ≤300KB (PNG transparent)
  • Cover story: ≤300KB

How to use:

  1. Install dependencies

    cd scripts
    npm install
    
  2. Single-type cropping (automatic compression)

    # 生成封面图(自动压缩到≤500KB)
    node resize_cover.js <输入图片> cover
    
    # 生成封面挂件(自动裁剪到标准尺寸,仅保留顶部324px可编辑区域)
    node resize_cover.js <输入图片> hang
    
    # 生成气泡挂件(自动裁剪到标准尺寸,保留顶部96px和底部72px可编辑区域)
    node resize_cover.js <输入图片> bubble
    
    # 生成封面故事(自动压缩到≤300KB)
    node resize_cover.js <输入图片> story
    
  3. Batch generate all sizes

    node resize_cover.js <输入图片> all [输出目录]
    
  4. Specify output path

    node resize_cover.js <输入图片> <类型> <输出路径>
    

Supported sizes:

  • Cover image: 957×1278px (3:4)
  • Cover widget: 1053×1746px (3:5,only the top 324px is editable, PNG transparent)
  • Bubble widget: 480×384px (5:4,top 96px + bottom 72px editable, middle 216px transparent and left blank, PNG transparent)
  • Cover story: 750×1250px (3:5)

Smart compression strategy:

The script automatically tries multiple compression strategies until the limit is met:

  • Non-transparent images(cover images, story images):

    • JPEG quality adjustment: 90% → 85% → ... → 55%
    • Use mozjpeg optimized encoding
    • Reduce resolution if necessary
  • Transparent images(widget types):

    • 8-bit palette PNG
    • Reduce palette quality
    • Limit the number of colors (128 colors)
    • Maximum compression level
    • Reduce resolution if necessary

Output example:

📸 封面图
   原始: 1920×1080px, 2450.50KB
   目标: 957×1278px, ≤500KB
   裁剪: 1438×1080px → 957×1278px
   ✅ 已保存: ./output/cover.jpg
      大小: 485.32KB / 500KB
      压缩: jpeg, 质量75%

Step 7: Handle transparent background (widgets only)

For cover widgets and bubble widgets, you need to ensure the background is transparent (PNG format), and elements must be located within the specified safe area.

Use remove_bg_enhanced.js (for AI-generated images)

Suitable for AI-generated images with complex backgrounds, featuring an intelligent background detection algorithm:

Script features:

  • Intelligent background detection (supports white/gray/auto modes)
  • Dual detection algorithm based on brightness and color distance
  • Edge feathering and anti-aliasing
  • Noise filtering (automatically removes small artifacts)
  • Optimized for AI-generated images

How to use:

  1. First generate a white-background image

    # 生成封面挂件(提示词中包含 "PURE WHITE BACKGROUND")
    node generate_image.js -p "... PURE WHITE BACKGROUND ..." -i "封面.png" -f "封面挂件_白底.png" -a "2:3"
    
    # 生成气泡挂件
    node generate_image.js -p "... PURE WHITE BACKGROUND ..." -i "封面.png" -f "气泡挂件_白底.png" -a "5:4"
    
  2. Use the enhanced script to remove the background

    # 处理封面挂件
    node remove_bg_enhanced.js 封面挂件_白底.png 封面挂件.png --mode white --tolerance 35 --feather 4
    
    # 处理气泡挂件
    node remove_bg_enhanced.js 气泡挂件_白底.png 气泡挂件.png --mode white --tolerance 35 --feather 3
    
  3. Adjust the size to the specification requirements

    # 封面挂件调整到标准尺寸(已透明,直接裁剪即可)
    node resize_cover.js 封面挂件.png hang 封面挂件.png
    
    # 气泡挂件调整到标准尺寸(已透明,直接裁剪即可)
    node resize_cover.js 气泡挂件.png bubble 气泡挂件.png
    

Parameter description:

Parameter Description Default value Recommended value
--mode Background detection mode:white/gray/auto auto white (white-background image)
--tolerance Background tolerance (0-100), the larger, the more aggressive 30 35-50
--feather Edge feathering pixels (0-20) 3 3-5
--smooth Edge smoothness (0-10) 2 2-4
--min-area Minimum retained area pixels 100 100-200

Complete workflow example:

# 1. 生成白底挂件图片
node generate_image.js \
  -p "A decorative pendant design on PURE WHITE BACKGROUND..." \
  -i "封面.png" \
  -f "封面挂件_白底.png" \
  -a "2:3"

# 2. 去除背景
node remove_bg_enhanced.js \
  封面挂件_白底.png \
  封面挂件_透明.png \
  --mode white \
  --tolerance 35 \
  --feather 4 \
  --min-area 200

# 3. 调整尺寸到微信规范
node resize_cover.js \
  封面挂件_透明.png \
  hang \
  封面挂件.png \
  --no-remove-bg

Notes:

  • When generating images, be sure to include PURE WHITE BACKGROUND
  • Adjust the tolerance value according to the actual effect; for complex backgrounds it can be appropriately increased
  • The larger the feathering value, the softer the edges, but details may be lost
  • After processing is complete, you must use resize_cover.js to adjust to standard size

Phase 4: Delivery and review reminders

After completing all asset generation, provide the user with the complete delivery checklist and review reminders:

Delivery Checklist Format

【交付清单】
━━━━━━━━━━━━━━━━━━━━━━━━
✅ 封面图 (957×1278px),文件名称
   └─ 格式:PNG/JPG,≤500KB

☐ 封面挂件 (1053×1746px),文件名称
   └─ 格式:PNG透明背景,≤300KB

☐ 气泡挂件 (480×384px),文件名称
   └─ 格式:PNG透明背景,≤300KB

☐ 封面故事图片 (750×1250px) × [数量],文件名称
   └─ 格式:PNG/JPG,≤300KB每张

📋 提交审核提醒:
- [ ] 准备封面简称(≤8字)
- [ ] 准备品牌logo(如需,200×200px,≤100KB)
- [ ] 准备证明材料(如涉及商标/肖像/版权)
- [ ] 授权有效期需≥提审后6个月
━━━━━━━━━━━━━━━━━━━━━━━━

Pre-Review Self-Check Reminders

Remind the user to perform the following checks before submitting for review:

  1. Content Compliance Check
    • Contains no legally prohibited content
    • Contains no politically sensitive content
    • Contains no contact information or traffic-driving information
    • Contains no commercial promotional content
    • Does not infringe on others' copyright, trademark, or portrait rights
  2. Design Quality Check
    • Image is clear and sharp, with no blur or jagged edges
    • Color scheme is harmonious and unified
    • Composition is balanced with a clear focal point
    • File size meets requirements
    • Dimensions are precise and correct
  3. Safe Area Check
    • The top 25% area of the cover image is simple and clean
    • The bottom 15% of the cover image has no key elements
    • Cover widget elements are only within the top 324px editable area (the rest of the area is transparent and left blank)
    • The middle 216px non-editable area of the bubble widget is completely transparent (elements appear only in the top 96px and bottom 72px)
  4. Format Requirements Check
    • Cover image: PNG/JPG, ≤500KB, 957×1278px
    • Cover widget: PNG transparent, ≤300KB, 1053×1746px
    • Bubble widget: PNG transparent, ≤300KB, 480×384px
    • Cover story: PNG/JPG, ≤300KB per image, 750×1250px

Key Principles of the Workflow

1. Proceed Step by Step

  • Each stage must be completed before proceeding to the next stage
  • Image generation can only begin after the user confirms the design plan
  • Ensure every step complies with the specification requirements

2. Follow the Specifications

  • Strictly follow the dimension specifications in references/dimension-specs.md dimension specifications in
  • Strictly follow the prompt templates in references/prompt-templates.md and references/festival-prompts.md prompt templates in
  • Strictly follow the review standards in references/audit-standards.md audit standards in

3. Unified Style

  • All assets (cover image, widgets, story images) must use a unified design language
  • Colors, styles, and element choices must be coordinated and consistent
  • Form a complete visual system

4. Safety First

  • Always make the review approval rate the primary goal
  • Do not use any content you are unsure about
  • Keep content positive, uplifting, healthy, and wholesome

5. User Confirmation

  • Every key stage requires user confirmation
  • User satisfaction is the ultimate goal
  • Make timely adjustments based on user feedback

Handling Common Scenarios

Scenario 1: The user selects a holiday theme

  1. Select the corresponding holiday template from references/festival-prompts.md select the corresponding festival template in
  2. Use holiday-specific elements and color schemes
  3. Generate assets according to the design requirements of the holiday theme

Scenario 2: The user has custom branding needs

  1. Use the general template in references/prompt-templates.md general templates in
  2. Incorporate the user's brand elements (logo, brand colors, etc.)
  3. Remind the user to prepare supporting materials such as trademark registration certificates

Scenario 3: The user needs all assets

  1. Generate in order: cover image → cover pendant → bubble pendant → cover story image
  2. Ensure each image complies with the corresponding dimension specifications
  3. Keep the style of all assets consistent

Scenario 4: The user only needs a cover image

  1. Generate only the cover image (957×1278px)
  2. Ensure the composition meets the safe area requirements
  3. Focus on optimizing the visual effect of the cover image

Skill directory file structure

Core functions: Stores reference documents, templates, and specification files required for skill operation, providing standardized guidance for WeChat red envelope cover design.

├── SKILL.md                           # 技能主文件,包含完整的工作流程和使用说明
└── scripts/                           # 脚本文件夹
    ├── generate_image.js              # 图片生成脚本(文生图/图生图)
    ├── resize_cover.js                # 图片尺寸裁剪和压缩脚本
    ├── remove_bg_enhanced.js          # 增强版背景去除脚本(AI图专用)
    ├── package.json                   # 依赖配置
    └── README.md                      # 脚本使用说明
└── references/                        # 参考文档文件夹
    ├── dimension-specs.md             # 尺寸规范文档
    ├── prompt-templates.md            # 通用提示词模板
    ├── festival-prompts.md            # 节日专属提示词
    └── audit-standards.md             # 审核标准文档

references file list and purpose description

1. dimension-specs.md (Dimension Specifications Document)

Document purpose: Defines the precise dimension specifications and design requirements for various WeChat red envelope cover assets

2. prompt-templates.md (General Prompt Templates)

Document purpose: Provides general prompt templates for various assets to ensure the generated images comply with WeChat red envelope cover specifications

3. festival-prompts.md (Festival-Specific Prompts)

Document purpose: Provides dedicated prompt templates for different festivals, including festival-specific elements, color schemes, and design requirements

4. audit-standards.md (Audit Standards Document)

Document purpose: Details the audit standards and prohibited content for WeChat red envelope covers to ensure the generated assets can pass platform review

scripts script list and purpose description

1. generate_image.js (Image Generation Script)

File purpose: Calls the AI interface to generate images, supporting text-to-image and image-to-image

Core functions:

  • Text-to-image: Generate brand-new images based on prompts
  • Image-to-image: Edit and optimize based on existing images
  • Supports multiple aspect ratios and resolutions

Use cases:

  • Generate assets such as cover images, pendants, and story images
  • Generate matching assets based on existing images (maintain style consistency)

2. resize_cover.js (Dimension Cropping Script)

File purpose: Adjust image dimensions to WeChat red envelope cover specifications and perform intelligent compression

Core functions:

  • Automatic center cropping while maintaining the target ratio
  • Intelligent compression to meet size limits
  • Automatically force the safe area of pendant-type images to be transparent (retain only editable area content)

Use cases:

  • Adjust images to the standard dimensions of WeChat red envelope covers
  • Compress files to meet WeChat size limits
  • Force the safe area of pendant-type images (automatically crop out non-editable areas)

Notes:

  • This scriptdoes not handle background removal, and only processes dimensions and compression
  • If background removal is needed, please first use remove_bg_enhanced.js

3. remove_bg_enhanced.js (Enhanced Background Removal Script) ⭐ Recommended

File purpose: An intelligent background removal tool designed specifically for AI-generated images

Core Features:

  • Intelligent background detection (white/gray/auto modes)
  • Dual detection algorithm based on brightness and color distance
  • Edge feathering and anti-aliasing processing
  • Noise filtering while preserving subject details

Use Cases:

  • Background removal for AI-generated pendant images
  • Professional-level cutout for complex backgrounds
  • Scenarios requiring fine edge processing

Script Division of Labor:

Function resize_cover.js remove_bg_enhanced.js
Main Responsibilities Size cropping and compression Background removal and transparency processing
Applicable Scenarios Size standardization for all images Background removal for AI-generated images
Core Capabilities Center cropping, intelligent compression, safe area restriction Intelligent background detection, edge feathering, noise filtering
When to Use Final step size standardization After background removal, before resize_cover.js
Typical Workflow Execute last First generate white background image → remove background → resize_cover.js adjust size

Principles for Using references Files

  1. Prioritize festival-specific templates
    • When the user selects a festival theme, prioritize using the corresponding template in festival-prompts.md
    • Ensure festival elements and color schemes match the festival characteristics
  2. General templates as supplements
    • When the user has custom requirements or the festival-specific template does not fully match, use the general template in prompt-templates.md
    • Replace variables according to user needs and supplement details
  3. Strictly adhere to size specifications
    • All assets must be generated strictly according to the size requirements in dimension-specs.md
    • Pay special attention to the composition safe area to ensure text readability
  4. Always follow audit standards
    • All designs must comply with the requirements in audit-standards.md
    • Avoid using any prohibited content
    • Ensure content is suitable for users of all ages
  5. Maintain consistent style
    • All assets (cover images, pendants, story images) must use a unified design language
    • Color, style, and element choices must be coordinated