Multi-Platform Video Cover Workflow (Video Cover)
Core Design Principles:
- WYSIWYG, Master One Version First Then Expand: First produce a complete
16:9cover draft for user approval; do not generate multiple sizes before confirmation. - True Element Rearrangement, Not Lazy Cropping: Different platform aspect ratios vary significantly. Changing from landscape to portrait, square, or ultra-wide must genuinely rearrange the subject framing, title line breaks, negative space, and visual focus for the target ratio, not simply crop or stretch.
- AI Handles Creativity and Rearrangement, Script Handles Deterministic Pixels and QA: Image generation/editing uses the current host's built-in capabilities (e.g., Codex
image_gen, DSH built-in GPT image generation, Antigravityimage-generator). Precise resolution alignment, WeChat dual-image stitching, and QA sheet generation are handled deterministically byscripts/pack_covers.py.
Phase 1 16:9 Full Master Draft (1–3 versions) ──► User explicitly approves 1 version
│ ← Hard gate: No approval, cannot proceed
Phase 2 Concurrent true rearrangement based on master (4:3 / 3:4 / 2.35:1 / 1:1)
└──► pack_covers.py precise pixel alignment + stitch 3618×1080 + generate qa_sheet.png
└──► Self-inspect qa_sheet.png (if one is wrong, regenerate only that one) ──► Deliver full set
Default Delivery Matrix (Fixed 4-Piece Set)
| Delivery File | Aspect Ratio | Exact Pixels | Target Platforms |
|---|---|---|---|
16x9.png | 16:9 | 1920 × 1080 | Bilibili / YouTube landscape main image |
4x3.png | 4:3 | 1440 × 1080 | Bilibili / WeChat Channels / Douyin landscape |
3x4.png | 3:4 | 1080 × 1440 | Xiaohongshu / Douyin / WeChat Channels portrait |
wechat_3618x1080.png | Combined canvas | 3618 × 1080 | WeChat Official Account single dual-cover: left 2538×1080 (2.35:1) + right 1080×1080 (1:1), seam fixed at X = 2538 |
If the user explicitly requests only certain platforms (e.g., "Just the Douyin version" or "Only the Xiaohongshu portrait"), generate only those aspect ratios. Full layout rules and safe zone values are in
references/layout-specs.md.
Phase 1 · 16:9 Master Draft (Includes Hard Gate)
Goal: Let the user see the complete composition, lighting, and title impact to select a single visual baseline.
Execution Steps:
- Extract Cover Package (Align Information First):
- From the user's request or spoken script, extract: core selling point/hook, verbatim locked main title (recommend no more than 12 Chinese characters, naturally split into 1–2 lines), optional subtitle/corner mark, core subject.
- If the user provides a real person photo, product image, or 3D render, record it as an "identity anchor reference image" and use it as reference input during generation to lock facial features and product appearance details.
- Generate 1–3 Distinct
16:9Full Covers:- Use the current host's built-in image generation tool, requesting native
16:9ratio (prefer model-supported custom sizes like2048×1152or16:9preset). - If generating 2–3 candidates, they must be visually distinct, covering: composition zone (text left / main right vs. text right / main left vs. centered impact), style and material tone (e.g., dark industrial macro / light gray minimalist editing / high-contrast documentary cinematic), title hierarchy.
- The prompt must lock the Chinese title in quotes verbatim; prohibit the model from adding English slogans, fake logos, or watermarks.
- Use the current host's built-in image generation tool, requesting native
- Display and Wait for Approval:
- Show the generated
16:9candidates to the user. Briefly describe each's visual positioning and explicitly ask: "Which version should be the master? Does the copy or image need adjustment?"
- Show the generated
⚠️ Hard Gate (Cannot Bypass)
Without the user explicitly confirming one version (e.g., "Version 2" or "This version is final, produce multi-size"), you are strictly forbidden from proceeding to Phase 2, generating 4:3 / 3:4 / 2.35:1 / 1:1, or running
pack_covers.py.
Phase 2 · Concurrent True Element Rearrangement + Precise Packaging and Self-Inspection
Goal: Using the user-approved 16:9 master as the only visual source, rearrange elements according to each platform's aspect ratio constraints, produce pixel-perfect deliverables, and complete a self-inspection loop.
Execution Steps:
1. Lock Master Invariants
Before initiating multi-ratio rearrangement, internally lock the following list and reuse verbatim in all image editing instructions:
- Unique Visual Master: The user-approved
16:9final image (if on local disk and the host requires the image in context, first use the image viewing tool to read it). - Identity Anchor Original (if any): The user-provided real person or product image. Use it together with the master as a dual image anchor (Image 1 locks tone/lighting/font mood; Image 2 locks face/features/product details) to prevent distortion during enlargement/rearrangement.
- Verbatim Copy: Record the main title, punctuation, and numbers exactly; do not translate, abbreviate, or add words.
2. Single Round Concurrent Calls: True Element Rearrangement by Platform Recipe
In the same round, launch parallel image editing calls for each target aspect ratio (all using the confirmed 16:9 master as source; strictly avoid chaining by using 4:3 to modify 3:4). For each ratio, strictly follow the composition recipes in references/layout-specs.md:
4:3(target1440×1080, request native4:3): Balanced compact landscape; show subject from upper body, with clear left-right or front-back hierarchy with title; enlarge title slightly for legibility on thumbnails.3:4(target1080×1440, request native3:4): High-density landscape-to-portrait rearrangement; show subject from upper body, centered or slightly lower; break main title naturally into 2–4 lines, place in upper or lower center; force 15% safe zone at the bottom to avoid platform UI progress bars and text overlays.1:1(target1080×1080, request native1:1): Compact square composition; trim side background, pull core subject and 2–4 line large text toward center; reserve 10% safe margin on all sides to prevent cropping by share cards and rounded corners.2.35:1(target2538×1080, request native2.35:1): Cinematic widescreen editorial feel; horizontal breathing space; default to de-emphasizing large faces, express theme with core objects/scene ambiance or distant environmental characters; title concise horizontal, kept away from left/right edges.
3. Run Deterministic Packaging and QA Sheet Script
After obtaining each ratio's rearranged image, immediately execute the repository's pure Python script (depends only on Pillow, no browser dependency):
python "<skill-dir>/scripts/pack_covers.py" \
--out-dir "<target output directory>" \
--r16x9 "<confirmed 16x9 master path>" \
--r4x3 "<4x3 rearranged image path>" \
--r3x4 "<3x4 rearranged image path>" \
--r235x100 "<2.35x1 rearranged image path>" \
--r1x1 "<1x1 rearranged image path>"
The script automatically performs:
- Aspect Ratio Sanity Check: If a wrong ratio image is passed (aspect ratio deviation >12%), immediately raise an error and stop;
- Precise Pixel Alignment: No stretching or distortion; use Lanczos high-precision resampling + slight sharpening (only when upscaling) to align to standard delivery resolution;
- WeChat Dual-Image Stitching: Automatically stitch
2538×1080and1080×1080at the fixed seamX = 2538, outputtingwechat_3618x1080.png; - Generate Combined QA Sheet: Output
qa_sheet.png(4-piece set overlaid with precise safe zone dashed lines, portrait bottom 15% UI occlusion warning strip, WeChat seam line, and a 1:1 real-pixel simulated mobile feed thumbnail at the bottom).
4. Self-Inspect with Image Viewer and Spot-Heal (Do Not Deliver Rejects to User)
Must use the image viewing tool to read the generated qa_sheet.png and check against the 7 acceptance criteria in references/layout-specs.md:
- If all pass, show the user
qa_sheet.pngand list the delivery files. - If a single ratio fails (e.g.,
1:1has a wrong stroke, or3:4title falls into the bottom red UI occlusion zone), only call out the specific issue for that ratio, regenerate it once, then rerunpack_covers.pywith only that slot (the script will automatically reuse other qualified slots in the directory and recombinewechat_3618x1080.pngandqa_sheet.png):
python "<skill-dir>/scripts/pack_covers.py" \
--out-dir "<target output directory>" \
--r1x1 "<corrected 1x1 image path>"
Reference Resources
references/layout-specs.md— Exact size matrix, per-aspect-ratio safe zone definitions, prompt writing templates, and 7 delivery acceptance criteria.scripts/pack_covers.py— Cross-platform pure Pillow packaging script (supports full packaging and single-slot hot update).