# images

images directs the AI to embed graphics in Remotion via the Img element, staticFile helper, and dimensions calculation.

- rule · `type=rule` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline · ★ 849 repo stars
- Author: coleam00
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/coleam00/second-brain-skills/tree/HEAD/.claude/skills/remotion/rules/images.md
- Updated: 2026-01-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/images

## What it does

This instruction set enforces the `<Img>` component from `remotion` over regular HTML tags, Next.js elements, or CSS background imagery. It ensures visual assets load completely before rendering starts, keeping video exports free of flickering and blank frames.

The guidance covers referencing assets placed in `public/` using `staticFile()`, pulling remote URLs with CORS enabled, and determining dimensions with `getImageDimensions()`. It also notes that animated GIF files require `<Gif>` from `@remotion/gif`.

Using standard HTML tags in a Remotion project will corrupt the render output, which makes this restriction strictly necessary.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/images.md` — The paths frontmatter field limits the files

### Codex

**AGENTS.md**
- Codex reads AGENTS.md: paste the rule text there

### Cursor

**Manually: put the files in place**
- File: `.cursor/rules/images.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/instructions/images.instructions.md` — The applyTo field sets which files it applies to

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/images.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/images.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/coleam00/second-brain-skills/tree/HEAD/.claude/skills/remotion/rules/images.md

## When to use it
- eliminate blank frames and visual glitches during video rendering
- reference local media from the public directory via staticFile
- calculate asset dimensions dynamically for composition layouts
- handle frame-by-frame image sequences in Remotion code

## Example prompts
- Add our brand logo from the public folder to the Remotion scene
- Build a frame sequence animation that reads images by current frame index
- Measure dimensions of the background banner to compute composition aspect ratio

## Similar
- [seo-images](https://affpapa.org/en/nevibecode/skills/seo-images.md) — skill · 7800 installs
- [unsplash-asset-images](https://affpapa.org/en/nevibecode/skills/unsplash-asset-images.md) — skill · 1900 installs
- [aura-asset-images](https://affpapa.org/en/nevibecode/skills/aura-asset-images.md) — skill · 1800 installs
- [images-search](https://affpapa.org/en/nevibecode/skills/images-search.md) — skill · 1800 installs
- [remotion-best-practices](https://affpapa.org/en/nevibecode/skills/remotion-dev-remotion-best-practices.md) — skill · 860000 installs
- [responsive-images](https://affpapa.org/en/nevibecode/skills/responsive-images.md) — skill · 148 installs

From the same set: [coleam00/second-brain-skills](https://affpapa.org/en/nevibecode/by/coleam00/second-brain-skills.md) — 33 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
