---
name: images-to-motion
description: Turn generated images and short GIFs into illustrated motion, brand character actions, scroll-controlled website demos, and narrated Reels. Use for an end-to-end motion asset or video request, especially when the user wants reusable prompts and verified model provenance.
---

# Images to Motion

Deliver a playable result built around the user's real use case. Start by showing what the motion helps the viewer understand. Introduce the API only when the user needs batch generation, file handling, or integration. A single output may be easier in the user's normal chat subscription.

Preserve the user's approved style and pacing. Read their current draft, existing brand references and requested changes before replacing a working sequence. A request to adjust one scene is not permission to redesign the whole film.

## Fit the medium to the result

A beautiful frame does not prove a commercially usable video. Short greetings, reaction stickers and editorial cutouts tolerate stylized low-frame motion well. Product advertising, smooth cinematography and strict identity or packaging continuity often need a video model or deterministic animation, followed by inspection. Keep visibly flawed tests as clearly marked counterexamples rather than pitching them as ready-to-use ads.

A zero-context viewer needs the product identity in the hook, a short explanation of what changed, then concrete uses. Before instructions, say how to use it; do not assume the viewer watched a previous post. A previous tutorial can supply a link, not missing context. Explain the value of the final resource bundle in one coherent CTA with the owner's established avatar. Check the actual last frames for a duplicate or abandoned tail.

## Choose the action before the tool

For a whole Reel, read [fullscreen-direction.md](references/fullscreen-direction.md). Plan shots and transitions before generation. Do not reuse a heading-plus-small-image slide for every scene. For reaction emoji or LINE stickers, read [reaction-formats.md](references/reaction-formats.md) and produce the correct derivative files.

Use one readable action per shot: open a card, move scenery around a fixed product, orbit the camera once, separate components, point at a detail, or deliver an object. Define what must stay unchanged. See [motion-recipes.md](references/motion-recipes.md) for tradeoffs and prompt examples.

For existing brands or people, obtain the user's chosen reference image from the workspace and inspect it. Use that image as a reference for generation. Do not guess their identity from text. Keep the owner’s character and voice separate from transferable examples. Include personal voice models or brand references in a shared package only when explicitly requested.

## Runtime requirements

Use Python 3.10+ and Pillow for frame inspection and demo preparation. The generation helper uses only the Python standard library. The Reel template also needs Node.js and its declared npm dependencies. In a new project run `python -m pip install Pillow`, then `npm install` in the copied Reel template; copy `shots.example.json` to `shots.json` and replace the sample paths with actual inputs. Do not install into a user’s shared environment without following their local setup rules.

## Generate and retain evidence

Respect the user's model choice. If exact model identity matters, use an entry point that exposes it and save the requested model, endpoint, request hash, output hash, usage and receipt. A generic image tool result is not evidence for a particular version.

Verify current provider documentation and account access before a new capability claim. The included [OpenAI notes](references/openai-images.md) record a dated, successful Images 2.6 experiment, not permanent product limits.

Use the native image tool when it meets the task. Use direct API calls when the user selected that route or exact model verification/batch processing requires it and spending is authorized. Never silently switch provider or model, top up credits, or assume the linked benefit has remaining balance.

`scripts/generate.py` supports a single OpenAI generation or reference edit, dry-run by default. Provide an explicit output folder and model in a request JSON. `--execute` performs one paid request; do not invoke it without applicable authorization. It reads `OPENAI_API_KEY` from the process environment or an explicitly chosen local env file, never from conversation text. It has no auto-retry or automatic publishing.

```sh
python scripts/generate.py --request request.json --out output/job-01
python scripts/generate.py --request request.json --out output/job-01 --env-file .env --execute
```

## Inspect before editing a film

Run `scripts/inspect_gif.py INPUT.gif --out qa` to inspect frames, timings and real transparency. Read the contact sheet. Check product typography, faces, hands, extra parts, camera drift and the first/last-frame join. A model can ignore "locked camera" or "seamless" in the prompt.

For one-way motion, play once and cut or hold briefly. Do not repeatedly rock the scene back and forth to fill narration. Do not add automatic ping-pong, invented in-between frames, or blanket camera shake. Keep the original GIF unchanged; label video/website composition separately.

## Build the actual application

- **Tech product story**: `scripts/build_tech_demo.py --housing housing.png --driver driver.png --grille grille.png --whole whole.png --out demo` builds the complete concept-speaker example with scroll-driven product layers, headings, leader lines and component labels. All four inputs share one canvas and camera. Adapt copy, coordinate anchors and component motion to the actual object. Verify labels touch the intended part at the end, stay clear of text and images, and work on phone, desktop, reverse scroll and reduced motion.
- **Smooth layered website**: `scripts/build_layered_demo.py --base base.png --inserts inserts.png --lid lid.png --out demo` creates the included product prototype from registered transparent layers. Adjust the template movement amounts and copy to the actual product; check assembled occlusion, text separation and mobile framing.
- **Native frame website**: `scripts/build_scroll_demo.py INPUT.gif --out demo --end-frame 7` builds a local product-page prototype. Choose the correct final frame after inspection. Scrolling selects original frames; the model did not generate scroll behavior. The template includes reduced-motion and manual controls. Adapt its title and product copy to the user.
- **Reel**: copy `assets/reel-template` into the user's project, fill `shots.json`, and supply their approved audio. Each shot points to an inspected GIF and a duration, with `once` or `loop` chosen deliberately. Install its dependencies if absent, then `python prepare.py` and `node render.mjs`. Native frames are composited at video frame rate; this does not increase the original motion detail. For precise narration, set subtitle phrase boundaries from actual audio rather than dividing by character count. A change of tool or mode must start when that spoken instruction begins. Split ChatGPT single-output and API batch instructions into separate scenes when their boundaries matter. A simulated UI must be labeled, with real generated assets as results; never present shortened waiting as actual generation speed.
- **Brand cutout**: prefer actual alpha output. Check alpha pixels before placing it over text or photos. Stage the pointing gesture toward something relevant; avoid scattering characters around as decoration.

## Deliver and verify

Watch representative frames from the final render, not just the design preview. Decode the full file; check audio, subtitles, no unintended blank/frozen moments, phone legibility, cover crops, own-avatar visibility, no duplicate CTA tail and resource links. Review the first, middle, last and clamped hold frames of animated callouts. If React hosts imperative DOM animation, mount its content once and apply state on every rendered frame; do not replace innerHTML each render while an effect only runs when progress changes. Keep characters, callout text and subtitles in distinct areas. Do not add an impact sound at every transition; keep effects only where the on-screen action warrants them. Check API response usage separately from billing debit. Preserve any uncertain claims as uncertain.

Deliver the movie, covers, native assets, actual prompts, and a concise reader-facing resource page. If a skill is requested, make it portable: no local absolute paths, secret keys, private account IDs, personal voice IDs, hidden services or assumed subscriptions. Validate in a fresh folder using one real input. Publishing and messaging require the user's corresponding authorization; this skill does not grant it.
