Generate professional advertisement posters with AI-powered backgrounds and product compositing.
本 Skill 需要以下外部服务和工具:
python3 - Python 3.8+dreamina - Dreamina CLI (通过 curl -s https://jimeng.jianying.com/cli | bash 安装)DREAMINA_API_KEY - Dreamina API 密钥REMOVE_BG_API_KEY - remove.bg API 密钥(可选,用于背景移除)This skill supports multiple industries and platforms:
# Using Dreamina AI backend
python main.py --backend dreamina \
--car ./product.jpg \
--brand "Brand Name" \
--subtitle "Product Tagline" \
--slogan "Marketing Slogan" \
--platform xiaohongshu \
--style premium \
--output ./output
# Using PIL (local, free)
python main.py --backend pil \
--car ./product.jpg \
--brand "Brand Name" \
--output ad.jpg
python main.py
# Follow prompts to select backend, platform, and style
When user provides car images and requests:
Ask the user (unless provided):
1. Brand name and model?
2. Main headline/slogan?
3. Subtitle/description?
4. Target audience? (young professionals, families, etc.)
5. Celebrity endorser image? (optional)
6. Preferred color scheme? (or auto-detect from brand)
Use image generation to create gradient background:
Prompt template:
"Premium gradient background for car advertisement,
{primary_color} to {secondary_color} smooth gradient,
subtle light rays, luxury automotive aesthetic,
minimalist, high-end commercial photography style,
no text, no car, clean background only"
Layout Structure (1080x1920 vertical):
┌─────────────────┐
│ HEADLINE │ ← 40-60px, bold, white or contrast color
│ subtitle │ ← 20-28px, lighter weight
│ │
│ [CAR IMAGE] │ ← Main visual, 60% of frame
│ [Celebrity] │ ← Optional, overlapping or beside
│ │
│ Slogan │ ← Bottom area
│ Logo │ ← Corner placement
└─────────────────┘
Color Palettes:
Typography:
Lighting:
# Pseudo-code for skill execution
def generate_car_ad(car_image, params):
# Step 1: Analyze car
car_analysis = analyze_image(car_image)
# Step 2: Generate background
background = generate_image(
prompt=build_background_prompt(params['style']),
size="1024x1536"
)
# Step 3: Process car image
car_processed = remove_background(car_image)
car_enhanced = enhance_lighting(car_processed)
# Step 4: Composite
composite = overlay_car_on_background(
background,
car_enhanced,
position="center-bottom",
scale=0.7
)
# Step 5: Add text
final = add_typography(
composite,
headline=params['headline'],
subtitle=params['subtitle'],
slogan=params['slogan'],
font_style=params['style']
)
# Step 6: Add logo
if params.get('logo'):
final = overlay_logo(final, params['logo'])
return final
Before presenting to user:
Input: SUV image, "理想i6", "新形态纯电五座SUV"
Output: Purple-blue gradient, car at 3/4 angle, large white text, celebrity placement
Input: Sports sedan, "P7", "纯粹驾驶乐趣"
Output: Dark background with orange accent lighting, dynamic angle, bold typography
Input: Minivan, "MEGA", "全家人的幸福空间"
Output: Warm gradient, spacious composition, friendly tone, emphasis on interior space
scripts/generate_background.py - Generate gradient backgroundsscripts/composite_ad.py - Layer car, background, textscripts/typography.py - Add professional text layoutSee references/ directory for:
li_auto_examples.md - Analysis of Li Auto ad patternscolor_palettes.json - Pre-defined gradient combinationstypography_guide.md - Font pairing recommendationscomposition_templates/ - Layout reference imagesThis skill supports Dreamina CLI for AI-powered background generation with higher quality results.
# Install Dreamina CLI
curl -s https://jimeng.jianying.com/cli | bash
# Login (required before use)
dreamina login --headless
Uses Python PIL to generate simple gradient backgrounds.
python main.py --backend pil --car image.jpg --brand 理想 --model i6
Uses Dreamina's text2image for professional AI backgrounds.
python main.py --backend dreamina --car image.jpg --brand 理想 --model i6 \
--platform xiaohongshu --style premium
| Platform | Ratio | Size | Use Case |
|---|---|---|---|
| ---------- | ------- | ------ | ---------- |
wechat | 21:9 | ~900×383 | 公众号头图 |
xiaohongshu | 3:4 | 1242×1660 | 小红书封面 |
airport_h | 16:9 | 1920×1080 | 机场横屏广告 |
airport_v | 9:16 | 1080×1920 | 机场竖屏广告 |
lightbox | 16:9 | Custom | 灯箱广告 |
| Style | Mood | Best For |
|---|---|---|
| ------- | ------ | ---------- |
premium | 豪华科技 | 汽车、高端产品 |
warm | 运动年轻 | 年轻品牌、运动产品 |
cool | 环保现代 | 新能源、科技产品 |
dark | 神秘高端 | 奢侈品、夜景 |
cultural | 国风山水 | 文旅、传统文化 |
fragrance | 粉金轻奢 | 美妆、香化 |
tea | 禅意自然 | 茶叶、健康 |
# Step 1: Generate AI background
python main.py --backend dreamina \
--car ./assets/suv.png \
--brand 理想 \
--model i6 \
--subtitle "新形态纯电五座SUV" \
--slogan "理想,就是活成自己喜欢的样子" \
--platform xiaohongshu \
--style premium \
--output ./output
# Step 2: Check generation status
dreamina query_result --submit_id=<id_from_step1>
# Step 3: Download result and composite (manual or scripted)
# Step 4: Add typography using composite_ad.py
# Check remaining credits
dreamina user_credit
# Typical consumption:
# - text2image (2k): ~10-20 credits
# - text2image (4k): ~30-50 credits
# - image_upscale: ~20-40 credits
Use existing image as base for style transfer:
from scripts.dreamina_backend import image_to_image
result = image_to_image(
prompt="luxury car advertisement style, premium gradient background",
image_path="existing_car_shot.jpg",
ratio="16:9"
)
共 1 个版本