CommunityImagegithub.com

maoyu-photo-dynamic-poster

Dual-mode photo-to-dynamic poster video generation (1080×1440 MP4): [Mode A · Art Dynamic Poster (default)] 3:4 floating frame + 21 artistic & avant-garde visual treatments (including Acid, Aura Diffusion, Holographic, Liquid Chrome, Parametric, Thermal Scan, X-Ray) with 4-stage on-canvas drawing growth; [Mode B · Mask Vision Poster] Full-screen full-bleed + invokes vidmuse CLI for image-to-video / first-last frame animation to bring subjects and scenery to life, then overlays 6 geometric masks and ultra-sharp vector typography (silky smooth, zero stutter). When user says "make dynamic poster" or "turn a snapshot into a poster", defaults to Mode A; when user says "mask poster", "mask vision", "mask dynamic poster", "time-slice poster", or "image-to-video poster", uses Mode B.

What is maoyu-photo-dynamic-poster?

This skill is a powerful photo-to-dynamic-poster generator that produces 1080×1440 MP4 videos, static frames, poster cards, and 8-stage quality-check grids. It operates in two distinct modes: **Mode A (Art Dynamic Poster)** applies a 3:4 floating frame around the original image and transforms the scene using one of 21 artistic or avant-garde visual treatments — from classic media like gouache and risograph to cutting-edge styles like acid chrome, aura diffusion, holographic, liquid chrome, parametric, thermal scan, and X-ray. It also includes a unique 4-stage on-canvas drawing animation (0%→100% growth). **Mode B (Mask Vision Poster)** goes full-screen with no outer frame, uses the local vidmuse CLI to animate the image (e.g., first-last frame transitions via Seedance 2.5), and then overlays one of 6 geometric masks with ultra-sharp, zero-stutter vector typography for a cinematic "alive" effect. The skill reads the actual photo content (subject, negative space, narrative) to custom-fit every parameter — treatment, layout, color palette, and typography — avoiding template repetition. It includes a full caching system (SHA-1-based) to avoid re-billing for VidMuse calls, and requires zero API costs for Mode A. It runs on macOS with Apple Vision for subject masking, Python 3.10+, ffmpeg, and the vidmuse CLI for Mode B video generation.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/maomyu/maoyu-photo-dynamic-poster/tree/HEAD/skills/maoyu-photo-dynamic-poster

Installed? Explore more Image skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

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 PhraseEnabled ModeCanvas & Core AestheticsEngine 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 growthDefault 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 stuttermode: "mask" + i2v.enabled: true (supports act1_from + act1_prompt + reimagine_start / reimagine_end relay first-last frames)

Three Supreme Iron Laws:

  1. 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.
  2. 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.
  3. 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/ and i2v_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 run playwright 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 vidmuse CLI; if not logged in or user specifies offline mode, set i2v.enabled to false to 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:

  1. 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?
  2. 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.
  3. 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_bg or styled_plate hybrid pipeline).
  4. 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 TypePreferred Art Medium treatment (built-in 4-stage physical growth)Recommended layoutColor Palette Suggestion (supports {"preset":..., ...} free customization)
Architecture/harbor/signs/color-block bright photosflat_graphic (linework → 3-layer gouache → ripple light sweep)split / steppedflat_crimson / flat_matcha / custom Mediterranean terracotta
One-point perspective street scenes/detailed classroom scenesrisograph (perspective wireframe burst → 3-color solid roller overprint)transit / mastheadriso_klein / riso_forest
Still life/fruit/frames/road signs/petscrayon_pastel (stroke-by-stroke charcoal sketch → double-layer wax crayon color boil)swatch / cornerscrayon_warm
Water/animals/night lights/atmospheric scenesstipple_glow (ripple spread → stardust coalescence → living water ripples)corners / serifstipple_blue / custom jade moon night
Flowers/foliage/skylights/elegant standalone objectsinner_glow (branch growth → hand-drawn petals → frosted bloom falling cherry blossoms)stepped / splitice_glow / warm_glow / custom cherry pink clear sky
Outdoor big sky/bridge beams/horizon silhouettessilhouette (sunset → skyline cut → window lights starry night → rising moon shooting star)serif / splitdusk / klein
Minimalist architectural lines/rainy window viewslineart (misty blue glowing wireframe + wiper)split / cornersmist
Isolated person / fiery emotional conceptglow / burncorners / bigtypeabyss / ember
Avant-garde / Y2K Acid liquid visionacid_chrome (acid grid → chrome silver wireframe → liquid fluorescent clashing colors → spinning star ray)stepped / transitacid_lime / acid_cyber
Emotional aura / diffusion fluid gradient aestheticsaura_diffusion (fluid diffusion color clouds → soft focus light mist → concentric energy halos, supports variant: "aura"| "mesh")serif / swatchaura_dream / aura_peach / aura_jade
Future laser / holographic full-spectrum film textureholographic (laser scan → thin-film optical interference rainbow → prism caustic star sparkle)masthead / cornersholo_noir / holo_pearl
Sculptural portraits / objects / futuristic liquid metalliquid_chrome (mercury edges converge → 2.5D heightmap bas-relief bulge → mirror chrome reflection flow waves)masthead / bigtypechrome_silver / chrome_gold / chrome_rose
Architecture / mountains & seas / algorithmic topological parametric aestheticsparametric (blueprint grid → principal curvature contour lines → 24-layer topological surface & parametric fin waves)transit / steppedparam_blueprint / param_ivory / param_obsidian
Infrared thermal sci-fi / life body temperature perceptionthermal_scan (infrared laser scan → iron red / plasma thermal diffusion → isotherms & temperature-measuring crosshair color bar)bigtype / cornersthermal_iron / thermal_plasma
Plant veins / wings / object X-ray perspective artxray_scan (illuminator exposure → cold blue translucent tissue + internal skeletal white light translucency)corners / bigtypexray_cobalt / xray_silver
When user explicitly needs to retain real photographic textureselective_depth / editorial_loupe / masthead_film / sticker_cinema / cutoutmasthead / transit / stepped / swatchcrimson_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 TypePreferred Mask Engine treatmentDefault I2V PipelineRecommended layout / palette
Landscape/harbor/mountains & sea/panoramic architecturegeo_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 themeseclipse_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 subjectsneg_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 detailswire_portal (cold gray living footage unfolding 3D wireframe color realm)live_bgportal_skew / cyber_emerald
Building grids/night scenes/strong structural framesbeat_assemble (dark field smooth sliding in split living viewports + double spotlight cones)live_bgportal_skew / neon_arcade
Portraits/sculptures/deities/thangkas/animal close-upsprism_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.md Section 4 or mask-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 --still does not invoke VidMuse, zero credit consumption); then open *.card.png one 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.

Related Skills