Cover Design
Request Structure & Default Method
A cover consists of an explicit title and a hero visual; a character layer is added only when the user/request explicitly requires it and provides a specified character source. Successful source frames are accepted by default – the system must not re-render to find a "better" character, landmark, or pose. The default requestedCoverPlan is produced locally with source=requested; model-based design, diagnosis, and whole-image rubrics remain separate explicit capabilities.
| Element | Actual Input | Processing Basis |
|---|---|---|
| Main Title | Non-empty title, max two lines | Request text; factual changes are not automatically made |
| Hero Visual | Actual shot ID and frame timestamp | Source file's current SHA256 |
| Character Layer | Optional specified shot ID / frame timestamp | Identity is not guessed; no characters are added |
| Platform | Requested platform and its canvas parameters | Actual export canvas |
| Font / Color Palette | Account-specified or bundled legal defaults | Whitelisted fonts & #RRGGBB |
SOP (Request → Local Synthesis → Product Receipt)
- Triggered on an explicit cover request; verify heroShotId, title, and a non-negative finite frame timestamp. Source and permissions must be valid. If the shot ID does not exist, title is empty, or the request is otherwise illegal, fail immediately – do not automatically substitute the hero visual.
- Read the platform and account font/color palette; generate a deterministic design draft using the request template. Fail explicitly on unknown fonts or illegal colors – the model must not guess substitutes.
- Extract the specified frame from the fixed successful source file; perform the requested base image processing, text, and optional character layer in one pass. The source file is read-only; do not extract additional frames for evaluation or generate new shots.
- Verify the actual PNG/JPEG product is readable; record source/output SHA256, title, shot ID, timestamp, font, and design draft.
qualityReviewed=false– do not claim whole-image aesthetic approval. - When the user requests a change in text, frame, character position, or color palette, form a new explicit local version; retain historical failures and old covers. Quality scores are not automatically recomputed.
Craft & Layout Reference
| Item | Suggested Value | Notes |
|---|---|---|
| Main Title Font Height | 6%–10% of frame height | Reference for request template |
| Subtitle Font Height | 42%–50% of main title | Hierarchical reference |
| Stroke | 6%–8% of main title | For complex backgrounds, an explicit background can be requested |
| Douyin Top Title Strip | 6%–42% | Platform UI design reference |
| Douyin Bottom Text Area | 52%–88% | Reference for centered character layout |
| Bottom Margin | 12% | Reference for platform captions and progress bar |
| Reference Frame Timestamp | 0.8–1.6s | User may specify another legal time; no auto-scoring or frame selection |
Default local request plan uses a main title ratio of 0.075, subtitle ratio of 0.034, and optional character width ratio of 0.42. Recommended short title ~12 characters, semantic line breaks, and no orphan characters – this is design knowledge, not a basis to reject a legal request based on default frame measurement.
Font & Parameter Boundaries
- Fonts must use actual bundled files:
smiley-sans,source-han-heavy,zcool-qingke,noto-serif; non-existent paths cannot be specified. - Main title must be non-empty and max two lines; hero/person shot IDs must actually exist; frame timestamps must be finite and >= 0.
- Account color palettes must be legal
#RRGGBB; source, material usage, and font license must cover the current purpose. - Source files are read-only; output is a new file. Non-existent character layers cannot be forged, and a character cannot be forced onto a shot without one.
- Default PSNR, title region differences, character layer pixel differences, or whole-image LLM quality voting are prohibited; untested is not considered passing.
Failure Modes (Symptom → Cause → Resolution)
| Symptom | Cause / First Check | Resolution |
|---|---|---|
| Hero/person shot ID does not exist | Check request vs. actual source shot list | Return cover_request_invalid; do not guess other characters |
| Title empty or more than two lines | Original request text | Explicit request error; do not let the model rewrite facts |
| Font or color palette illegal | Font whitelist, #RRGGBB | Identify illegal parameter; retain old version |
| Frame extraction or synthesis fails | Actual FFmpeg/font/path logs | Preserve real tool failure; do not substitute with source image as a complete cover |
| Source/product bytes change | Source SHA256 vs. current file | Source failure; stop delivery |
| User says text too small / covers face / tone mismatch | User feedback vs. adopted design draft | Explicitly change position, font size, or timestamp, then rework locally; do not auto-re-run quality |
Receipt & Knowledge Boundaries
The request, design draft (source=requested), actual shot ID/timestamp, source/output SHA256, canvas, font, color palette, and tool results are all written to the per-stage receipt. The quality branch and LLM rubric of the old coverDeterministicChecks are used only for explicit separate diagnosis, not as default formal acceptance criteria.