Snapshot Dynamic Poster & Mask Vision Poster (v5.4 Dual-Genre Fusion Engine)
One photo → one 1080×1440 vertical dynamic poster video + static frame + poster card PNG + 8-stage dynamic quality check grid. Engine located in scripts/ (dynposter.py + avant_treatments.py + typeset.py + mask_cinema.py + vidmuse_i2v.py); style references in references/style-dna.md and references/mask-cinema-dna.md; field configuration in references/spec.md.
Step 0: Identify Genre Mode (Clear Separation, Strictly No Mixing)
| User Trigger Phrase | Enabled Mode | Canvas & Core Aesthetics | Engine Parameters |
|---|---|---|---|
| "make dynamic poster" / "turn a snapshot into a poster" / "art dynamic poster" (default, when no genre is specified) | Mode A: Art Dynamic Poster (purely offline, zero API) | Original image as base + centered 900×1200 3:4 art frame; full-image artistic & avant-garde aesthetic translation (gouache/risograph/crayon/inner glow/dot-matrix/silhouette + Acid/Aura Diffusion/Holographic/Liquid Chrome/Parametric/Thermal Scan/X-Ray) + blank canvas 0%→100% 4-stage on-canvas drawing & natural growth | Default mode: "art" (21 treatment × 8 layout) |
| "mask poster" / "mask vision" / "mask vision poster" / "mask dynamic poster" / "time-slice poster" / "image-to-video poster" | Mode B: Mask Vision Poster (full-screen full-bleed hybrid I2V) | 1080×1440 full-screen full-bleed (no outer frame); relay first-last-frame three-act structure (K0 original → K1 build final state → K2 climax eruption): first segment builds mask & ultra-sharp typography on original image, then Seedance 2.5 physically transforms from original and seamlessly connects layer by layer; second segment uses K1==K1 to seamlessly take over the big climactic eruption + frame-breaking / star-trail ultra-sharp vector typography**, zero motion-blur overlap, native 24fps silky smooth with zero stutter | mode: "mask" + i2v.enabled: true (supports act1_from + act1_prompt + reimagine_start / reimagine_end relay first-last frames) |
Three Supreme Iron Laws:
- First read the photo's motif, never mechanically apply templates: Understand the real story in the photo, negative-space windows, landmark centers, and subject outlines; tailor a bespoke medium, color world, typography, and copy.
- Mode B creativity & character motion must be bold (forbid conservative micro-moves, forbid stutter/spasm): Do not just write "slight blink / gentle water ripple"; dare to use
reimagine_start/reimagine_end(Seedream 5.5, only 3 credits/image) with Seedance 2.5 first-last frames to produce truly bold physical transformations: subjects raising hands / turning head / pushing glasses / forming seals / spreading wings and leaping; clothing textures and wide hems surging in gale or metamorphosing into liquid gold / crimson silk; architecture and streetscapes invaded by surreal objects (glowing giant moon / jellyfish swarm / aquarium waterfall / spinning Ferris wheel); then overlay frame-breaking depth-of-field and rotating star-trail dynamic graphics! Maintain throughout: no text during AI generation + post-processed vector typography locked to frames + native 24fps silky playback. - Verify static frame first, dual-layer cache to save credits: Mode B first runs
--still(0 credits) to finalize typography & copy, then runs full re-render + I2V;reimagine_cache/andi2v_cache/both auto-cache by SHA-1; fine-tuning typography & graphics never incurs repeat charges.
Dependencies
- macOS (subject masking uses Apple Vision; on first run, auto-compiles with
swiftc, cached in~/.cache/photo-dynamic-poster/) - Python 3.10+:
numpy,opencv-python(-headless),Pillow,playwright(and runplaywright install chromium) ffmpeg; fonts use macOS system fonts (PingFang SC / Songti SC / Helvetica Neue / Avenir Next / DIN Condensed / Didot / Snell Roundhand / Iowan Old Style / Rockwell)- Mode B image-to-video: requires locally logged-in
vidmuseCLI; if not logged in or user specifies offline mode, seti2v.enabledtofalseto fall back to fully local silky-smooth rendering
Workflow
S=<skill-dir>/scripts/dynposter.py. Output placed in user's working directory (do not write into skill directory).
1. Truly Understand the Photo (Creative Director Step — Do Not Skip)
Use your eyes to carefully observe the original image, answer 4 questions before proceeding:
- Orientation, focus, and negative-space windows: Is the image horizontal? Where should
focus: [fx, fy]be placed to avoid text overlapping the subject? Does the original have natural negative space that can directly serve as a typography stage? - Core narrative elements & dynamic director design:
- Mode A: Identify the geometric coordinates best suited as the starting point for dynamic growth (e.g.,
draw_origin,vanishing_point,water_y,anchor). - Mode B: Conceive how the subject and environment will truly come to life — write a precise image-to-video prompt with a locked static camera (
Locked static tripod camera, zero camera shake, zero zoom, zero text): how the character smiles/blinks/lightly turns head/lifts cloak and hair; how flames, lotus petals, or ribbons on a statue or deity flow; how water/harbor/swans/boats/clouds continuously undulate.
- Mode A: Identify the geometric coordinates best suited as the starting point for dynamic growth (e.g.,
- Choose visual language & pipeline:
- Mode A: Prefer pure artistic translation (
flat_graphic,risograph,crayon_pastel,stipple_glow,inner_glow,silhouette,lineart); only use photorealism treatments when user explicitly requests retaining realistic texture. - Mode B: Select from the 6 mask engines based on scene subject matter (auto-selects optimal
live_bgorstyled_platehybrid pipeline).
- Mode A: Prefer pure artistic translation (
- Masking advanced techniques: If automatic masking (Vision/contrast) fails on complex cut-out foregrounds like branches or tree canopies, directly generate a precise grayscale mask PNG using CIE LAB / HSV chromatic difference, and pass it via
"subject": {"mask": "path.png"}.
2. Analysis & Mask Check
# Mode A (default art dynamic poster, outputs 4x4 previews.jpg)
python3 $S analyze <photo> --work <workdir>/output/<name>_work [--focus fx fy]
# Mode B (mask vision poster, outputs 4x2 previews_mask.jpg)
python3 $S analyze <photo> --mode mask --work <workdir>/output/<name>_work [--focus fx fy]
Must open previews.jpg (or previews_mask.jpg) to examine. If mask is incorrect, correct with --box x0 y0 x1 y1 (optional --polarity dark|bright) or a custom chromatic mask PNG.
3. Select Genre Visual × Typography × Custom Color Palette
Mode A (default): Art Dynamic Poster (21 visual media × 8 layouts, fully offline zero API)
| Photo Type | Preferred Art Medium treatment (built-in 4-stage physical growth) | Recommended layout | Color Palette Suggestion (supports {"preset":..., ...} free customization) |
|---|---|---|---|
| Architecture/harbor/signs/color-block bright photos | flat_graphic (linework → 3-layer gouache → ripple light sweep) | split / stepped | flat_crimson / flat_matcha / custom Mediterranean terracotta |
| One-point perspective street scenes/detailed classroom scenes | risograph (perspective wireframe burst → 3-color solid roller overprint) | transit / masthead | riso_klein / riso_forest |
| Still life/fruit/frames/road signs/pets | crayon_pastel (stroke-by-stroke charcoal sketch → double-layer wax crayon color boil) | swatch / corners | crayon_warm |
| Water/animals/night lights/atmospheric scenes | stipple_glow (ripple spread → stardust coalescence → living water ripples) | corners / serif | stipple_blue / custom jade moon night |
| Flowers/foliage/skylights/elegant standalone objects | inner_glow (branch growth → hand-drawn petals → frosted bloom falling cherry blossoms) | stepped / split | ice_glow / warm_glow / custom cherry pink clear sky |
| Outdoor big sky/bridge beams/horizon silhouettes | silhouette (sunset → skyline cut → window lights starry night → rising moon shooting star) | serif / split | dusk / klein |
| Minimalist architectural lines/rainy window views | lineart (misty blue glowing wireframe + wiper) | split / corners | mist |
| Isolated person / fiery emotional concept | glow / burn | corners / bigtype | abyss / ember |
| Avant-garde / Y2K Acid liquid vision | acid_chrome (acid grid → chrome silver wireframe → liquid fluorescent clashing colors → spinning star ray) | stepped / transit | acid_lime / acid_cyber |
| Emotional aura / diffusion fluid gradient aesthetics | aura_diffusion (fluid diffusion color clouds → soft focus light mist → concentric energy halos, supports variant: "aura"| "mesh") | serif / swatch | aura_dream / aura_peach / aura_jade |
| Future laser / holographic full-spectrum film texture | holographic (laser scan → thin-film optical interference rainbow → prism caustic star sparkle) | masthead / corners | holo_noir / holo_pearl |
| Sculptural portraits / objects / futuristic liquid metal | liquid_chrome (mercury edges converge → 2.5D heightmap bas-relief bulge → mirror chrome reflection flow waves) | masthead / bigtype | chrome_silver / chrome_gold / chrome_rose |
| Architecture / mountains & seas / algorithmic topological parametric aesthetics | parametric (blueprint grid → principal curvature contour lines → 24-layer topological surface & parametric fin waves) | transit / stepped | param_blueprint / param_ivory / param_obsidian |
| Infrared thermal sci-fi / life body temperature perception | thermal_scan (infrared laser scan → iron red / plasma thermal diffusion → isotherms & temperature-measuring crosshair color bar) | bigtype / corners | thermal_iron / thermal_plasma |
| Plant veins / wings / object X-ray perspective art | xray_scan (illuminator exposure → cold blue translucent tissue + internal skeletal white light translucency) | corners / bigtype | xray_cobalt / xray_silver |
| When user explicitly needs to retain real photographic texture | selective_depth / editorial_loupe / masthead_film / sticker_cinema / cutout | masthead / transit / stepped / swatch | crimson_film / teal_cinema / gallery_white |
Mode B (mode: "mask"): Mask Vision Poster (VidMuse image-to-video + ultra-sharp vector typography, see references/mask-cinema-dna.md)
| Photo Type | Preferred Mask Engine treatment | Default I2V Pipeline | Recommended layout / palette |
|---|---|---|---|
| Landscape/harbor/mountains & sea/panoramic architecture | geo_slice (ring + oblique cut 4-season climate real-time synchronized living slices) | live_bg (original image → video → per-frame real-time slice color grading) | editorial_depth / season_cut |
| Architectural skyline/strong silhouettes/night themes | eclipse_cut (blood red full moon → golden sun first-last frame living fluid morph + warm windows) | styled_plate (supports keyframes: "first_last") | editorial_depth / crimson_eclipse |
| Animals/people walking/street dynamic subjects | neg_frame (external infrared afterimage + central PS anchor living HD viewfinder window) | live_bg (original image → video → simultaneous inside-outside window dynamics) | frame_noir / crimson_noir |
| Modern façades/street scenes/object details | wire_portal (cold gray living footage unfolding 3D wireframe color realm) | live_bg | portal_skew / cyber_emerald |
| Building grids/night scenes/strong structural frames | beat_assemble (dark field smooth sliding in split living viewports + double spotlight cones) | live_bg | portal_skew / neon_arcade |
| Portraits/sculptures/deities/thangkas/animal close-ups | prism_halo (dark studio subject + 3D flowing color halo living animation + real-time depth-of-field text compression) | styled_plate (dark studio real-time per-frame subject occlusion text compression) | dominion_split / iridescent_noir |
When batch processing multiple photos, ensure each has its own unique treatment + layout + palette and custom action prompt — never reuse the same combination.
4. Write Copy, Polish Static Frame (0 Credit Pre-check)
- Write copy according to
style-dna.mdSection 4 ormask-cinema-dna.md; if brand/product information is present, incorporate exhibition-archive-style metadata and restrained poetic short phrases. - First output static frame (approx. 4 seconds; Mode B
--stilldoes not invoke VidMuse, zero credit consumption); then open*.card.pngone by one to check text avoidance, contrast, margins, and color palette:
python3 $S render spec.json --still
5. Render Full Final Video, Add Music & Full-Frame Final Check
python3 $S render spec.json # Full final video (Mode B automatically invokes vidmuse, caches locally, then 1:1 composites ultra-sharp typography)
python3 $S concat a.mp4 b.mp4 --out 合集.mp4 # Concatenate clips (auto-unifies frame rate and 1080x1440 resolution)
- Music & tempo matching: When adding background music to a compilation, first measure the continuous non-breathing phrase duration of the accompaniment and normalize to
-14 LUFS. - Before delivery, must open
*.frames.jpg(8 evenly spaced frames covering first and last):- Mode A: Confirm one can tell at a glance the 0%→100% on-canvas drawing and natural growth process;
- Mode B: Confirm subject/scene pose or lighting shows a real, continuous, silky living evolution across the 8 frames, and that all Chinese & English vector typography is 100% sharp, undistorted, not covering faces or compressing subjects; then report to the user with clickable
file://links and creative concept.