---
title: "Image"
description: "Local images with required alt text and optional captions."
plan: Pro
docs: https://ui.edbn.me/docs/pdfs/image
---

# Image

Local images with required alt text and optional captions.

pdf-image places a local file at full width, with its description as alt text and an optional caption below in small muted type. Images are passed as bytes under assets/ with the render call, as PNG, JPEG or SVG; nothing is fetched remotely, and an SVG with scripts, foreignObject or external links is refused. No template includes one by default, and the brand logo follows the same asset rules and needs logoAlt.

## Installation

This is a Pro item. Once per project, create a token at https://ui.edbn.me/dashboard/tokens, put it in `.env.local` as `EDBN_TOKEN`, and add the registry to `components.json`:

```json
{
  "registries": {
    "@edbn": {
      "url": "https://ui.edbn.me/r/{name}.json",
      "headers": { "Authorization": "Bearer ${EDBN_TOKEN}" }
    }
  }
}
```

Then install:

```bash
npx shadcn@4.19.0 add @edbn/pdf-image
```

## Dependencies
- edbn: pdf-shared

## Usage

The example code is part of Pro (https://ui.edbn.me/pricing). With the user's token, the edbn MCP server's `get_example` tool returns it: https://ui.edbn.me/mcp

## Files
- lib/pdf/components/image.typ (3 lines)
- lib/pdf/templates/image-example.typ (8 lines)
- lib/pdf/examples/components/image.ts (18 lines)
- lib/pdf/assets/phases.svg (9 lines)

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
