---
title: Images and media
subtitle: Images, captioned frames, videos, embedded pages, and downloadable files. Referenced assets are copied into the output automatically at build time.
description: Using images (click to zoom), Frame, Video, Embed, and Download in ButterIX pages, plus asset path rules and how SVGs are handled safely.
---

## Images

Standard Markdown images work, and you can click them to zoom:

```mdx
![ButterIX build pipeline](/assets/pipeline.svg)
```

![ButterIX build pipeline](/assets/pipeline.svg)

Images written as HTML `<img>` tags (icons or screenshots in table cells, for example) zoom on click too. Add `noZoom` to images that shouldn't:

```mdx
<img src="/assets/logo.svg" alt="Logo" width="120" noZoom />
```

An image with `askAi` can be shown right in [Ask AI's answers](../features/ask-ai.mdx#showing-images-in-answers).

### Asset paths

| Syntax | Resolves to |
|---|---|
| `/assets/pipeline.svg` | `assets/pipeline.svg` under the project root (recommended) |
| `../assets/pipeline.svg` | Relative to the current page file |
| `https://…` | The external URL, referenced as-is |

Referenced files are copied to `/_biti/files/<path-in-project>`; unreferenced files don't end up in the output. When a page references a file that doesn't exist, `biti check` reports an `asset/missing` error.

<Warning>
  English translations live in `translations/en/pages/…`. Images referenced with relative paths break in translations, so always use project-root paths starting with `/`.
</Warning>

### Controlling size

Use `<img>` when you need to set width and height (its attributes are on the safe allowlist):

```mdx
<img src="/assets/favicon.svg" alt="ButterIX icon" width="64" height="64" />
```

<img src="/assets/favicon.svg" alt="ButterIX icon" width="64" height="64" />

### Captions

The `caption` of an `<img>` adds a line of small gray text, centered below the image; it works in table cells too. In the visual editor, click the image and fill in “Caption”:

```mdx
<img src="/assets/pipeline.svg" alt="ButterIX build pipeline" caption="From source files to static output" />
```

<img src="/assets/pipeline.svg" alt="ButterIX build pipeline" caption="From source files to static output" />

Use `<Frame>` below when you want a border.

## Frame: captioned frames

`<Frame>` (alias `<Figure>`) adds a border and caption to images, videos, or embedded content:

```mdx
<Frame caption="Source files are built into static output, and the runtime adds dynamic features on top" background="subtle">
  ![Build pipeline](/assets/pipeline.svg)
</Frame>
```

<Frame caption="Source files are built into static output, and the runtime adds dynamic features on top" background="subtle">
  ![Build pipeline](/assets/pipeline.svg)
</Frame>

The `hint` prop shows a line of hint text above the frame.

## Videos

`<Video>` supports video files (native player) as well as YouTube, Vimeo, and Loom links (converted to embedded players automatically):

<CodeGroup>
```mdx Video file
<Video src="/assets/demo.mp4" poster="/assets/demo-poster.png" controls />
```

```mdx YouTube
<Video src="https://www.youtube.com/watch?v=VIDEO_ID" title="Product demo" />
```

```mdx Autoplay
<Video src="/assets/loop.mp4" autoplay loop muted />
```
</CodeGroup>

Autoplaying videos are muted (required by browser policies). Embedded videos default to 16:9; adjust with `ratio="4/3"`.

## Embedded pages and PDFs

`<Embed>` (alias `<IFrame>`) embeds pages, live demos, or PDFs in a responsive iframe:

```mdx
<Embed src="https://www.figma.com/embed?embed_host=share&url=…" title="Design mockup" ratio="16/10" />
<Embed src="/assets/whitepaper.pdf" title="Whitepaper" height="640px" />
```

You can also write `<iframe>` or `<video>` directly; they're on the HTML safe allowlist (`src` is protocol-checked).

## Downloadable files

```mdx
<Download src="/assets/logo.svg" filename="butterix-logo.svg">
  <Button icon="lucide:download">Download logo</Button>
</Download>
```

<Download src="/assets/logo.svg" filename="butterix-logo.svg">
  <Button icon="lucide:download">Download logo</Button>
</Download>

The `sources` prop accepts multiple public URLs and bundles them into a ZIP download in the browser.

## Icons

Use `<Icon>` for inline icons; it follows the text size and color: <Icon icon="lucide:rocket" /> Ship, <Icon icon="lucide:sparkles" color="#7C5CFF" /> AI, <Icon icon="fa-solid fa-bolt" /> Fast.

```mdx
<Icon icon="lucide:rocket" /> Ship, <Icon icon="lucide:sparkles" color="#7C5CFF" /> AI, <Icon icon="fa-solid fa-bolt" /> Fast
```

Icon syntax (shared by the `icon` prop of every component):

| Syntax | Source |
|---|---|
| `rocket`, `fa-solid fa-bolt`, `fa-brands fa-github` | Font Awesome Free |
| `lucide:rocket` | Lucide |
| `https://…/icon.png`, `/assets/icon.svg` | Image |
| `{<svg …>…</svg>}` | Inline SVG |

Icons are collected into a per-page SVG sprite at build time and deduplicated automatically, so no icon font needs to load.

## Safe handling of SVGs

SVGs can contain scripts. ButterIX attaches a strict `Content-Security-Policy` (`sandbox`) to SVG responses under `/_biti/files/`, so scripts don't run even when the file is opened directly. Images uploaded through the visual editor are handled the same way.
