> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gobl.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Image

Image describes a logo or photo that represents an entity.

## Schema ID

`https://gobl.org/draft-0/org/image`

## Properties

| Title       | Property      | Type                                | Description                                                                                                                           |
| ----------- | ------------- | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| UUID        | `uuid`        | string                              | Universally Unique Identifier.                                                                                                        |
| Label       | `label`       | string                              | Label to help identify the image.                                                                                                     |
| URL         | `url`         | string                              | URL of the image                                                                                                                      |
| Data        | `data`        | string                              | As an alternative to the URL and only when the source data is small, like an SVG, the raw data may be provided using Base64 encoding. |
| MIME        | `mime`        | string                              | Format of the image.                                                                                                                  |
| Description | `description` | string                              | Details of what the image represents.                                                                                                 |
| Alt         | `alt`         | string                              | Alternative text if the image cannot be shown.                                                                                        |
| Height      | `height`      | integer                             | Height of the image in pixels.                                                                                                        |
| Width       | `width`       | integer                             | Width of the image in pixels.                                                                                                         |
| Digest      | `digest`      | [dsig.Digest](/draft-0/dsig/digest) | Digest can be used to ensure the image contained at the URL is the same one as originally intended.                                   |
| Meta        | `meta`        | [cbc.Meta](/draft-0/cbc/meta)       | Meta contains additional information about the image.                                                                                 |

## Validation Rules

| Field    | Test                                                                 | Validation Code / Message                                                |
| -------- | -------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| `url`    | <ul class="gobl-test"><li>Url</li></ul>                              | `GOBL-ORG-IMAGE-01`<br />Image URL must be valid                         |
| `height` | <ul class="gobl-test"><li>At least 64</li><li>At most 2048</li></ul> | `GOBL-ORG-IMAGE-02`<br />Image height must be between 64 and 2048 pixels |
| `width`  | <ul class="gobl-test"><li>At least 64</li><li>At most 2048</li></ul> | `GOBL-ORG-IMAGE-03`<br />Image width must be between 64 and 2048 pixels  |
