# ExportImage (@salmonui/core/export-model)

> The ExportImage interface of @salmonui/core/export-model: An image drawn in a cell: PNG or JPEG bytes and the display size in CSS px (96 dpi). type is sniffed from the magic bytes when absent. XLSX embeds it as a picture anchored to the cell, PDF as an image XObject; CSV writes the cell text.

Canonical: https://salmonui.dev/docs/reference/core/export-model/ExportImage

```ts
import type { ExportImage } from '@salmonui/core/export-model';
```

Entry index: https://salmonui.dev/docs/reference/core/export-model (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/core/export-model.md).

## Reference

Kind: interface

```ts
interface ExportImage {
    readonly data: Uint8Array;
    readonly type?: 'png' | 'jpeg';
    readonly width: number;
    readonly height: number;
}
```

An image drawn in a cell: PNG or JPEG bytes and the display size
in CSS px (96 dpi). `type` is sniffed from the magic bytes when absent.
XLSX embeds it as a picture anchored to the cell, PDF as an image XObject;
CSV writes the cell text.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `data` | `readonly data: Uint8Array;` |  |  |
| `type` | `readonly type?: 'png' \| 'jpeg';` | optional |  |
| `width` | `readonly width: number;` |  |  |
| `height` | `readonly height: number;` |  |  |
