> For the complete documentation index, see [llms.txt](https://docs.eximee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/aplikacja-biznesowa/elementy-aplikacji-artefakty/grafiki-aplikacji.md).

# Application graphics

{% hint style="info" %}
Availability of the functionality depends on the license and the deployment configuration and may not be available in all deployments.
{% endhint %}

An application graphic is an application element (artifact) that stores a graphic file — e.g. a logo, icon, or illustration — used in the forms of this application. Graphics are added in Eximee Designer in the **Graphics** tab of the application. Each graphic gets a fixed relative path, which is entered in the form, e.g. in the component [Image - Image](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/biblioteka-komponentow-bazowych/4-tresci/obraz-image.md).

Graphics belong to the application and are moved together with it: application export includes them, and application import publishes them in the target environment. There is no need to deliver graphics as a separate package or manually upload files by an administrator.

## Graphic path

The relative path of the graphic has the following form:

```
graphic/{application_name}/{light|dark}/{file_name}
```

Example for the application `demo` and file `logo.svg`:

```
graphic/demo/light/logo.svg
graphic/demo/dark/logo.svg
```

* The path is the same in every environment (DEV, TEST, PROD), so after migrating the application there is no need to change it in the forms.
* The path cannot be changed after the graphic is added. To use a different name, add the graphic again under the new name.
* [New graphic version](#dodawanie-nowej-wersji-grafiki) keeps the current path, so the forms do not need to be changed.

### Light and dark variants

Each graphic has two variants:

* **light** - required,
* **dark** - optional, e.g. a logo version for a dark background.

If the dark variant is not added, at the path `dark` the light file is published. This ensures that both paths always return a graphic.

The variant is selected by entering the appropriate path in the form (`light` or `dark`).

## File requirements

| Requirement                           | Value                                                                                |
| ------------------------------------- | ------------------------------------------------------------------------------------ |
| Supported formats                     | PNG, JPG (JPEG), WebP, SVG                                                           |
| Format of the light and dark variants | the same for both variants, e.g. both files JPG                                      |
| Maximum size of one variant           | 5 MB                                                                                 |
| Allowed characters in the name        | letters without Polish diacritics, digits, dot (`.`), underscore (`_`), hyphen (`-`) |

The file contents must match its format - e.g. a file with the extension `.png`that is actually a JPG file will be rejected.

## Browsing graphics

1. Go to the **Applications** module and open the application.
2. Click the **Graphics**.

tab. If the application does not have the **Graphics**tab, application graphics are not enabled in this environment. Contact the administrator.

Tab **Application graphics** shows graphics as tiles. Each tile contains:

* a thumbnail of the light variant,
* labels **Light** or **Light** and **Dark** - the second label appears only when the graphic has a separate dark file,
* file name,
* format, dimensions, and size,
* modification date,
* light variant path.

To copy the light variant path, click the **Copy path** icon on the tile.

To find a graphic, enter part of the file name in the **Search...**.

<figure><img src="https://2112972046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2Fgit-blob-3797c4f7295c713bb050cd9796777edc7edc2d79%2Fgrafiki-aplikacji-01-lista-grafik.png?alt=media" alt=""><figcaption><p><em><strong>Figure 1.</strong> Application "Graphics" tab</em></p></figcaption></figure>

## Adding a graphic

1. In the **Graphics** tab, click **Add graphic**.
2. In the **Light variant** tab, click **Choose or drag a file** and select a file or drag it onto the field.
3. (Optional) In the **Dark variant** you can add a file for a dark background. The dark file must have the same format as the light file.
4. Check the field **Name in URL**. By default it contains the light file name - you can change it, e.g. to `logo.svg`.
5. Check the path preview in the fields **Light path** and **Dark path**.
6. Click **Publish**.

The button **Publish** is active only when the light file has been added and the checklist in the window contains no errors (format, size, name). If the light and dark files have different formats, e.g. light PNG and dark JPG, an error appears at the **Supported format** position.

<figure><img src="https://2112972046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2Fgit-blob-6111bc3c4e57cbc12eb3f96c5d8699d868fa4ffc%2Fgrafiki-aplikacji-02-dodaj-grafike.png?alt=media" alt=""><figcaption><p><em><strong>Figure 2.</strong> "Add graphic" window with light and dark variants</em></p></figcaption></figure>

After adding, the graphic is published immediately and available at its path. Adding a graphic increases the application version, just like adding a form or process.

{% hint style="info" %}
The graphic name must be unique within the application. The same file name can appear in different applications because the path includes the application name.
{% endhint %}

## Graphic details

To open the details, click the file name on the tile. The details page contains:

* graphic status: **Active** (the graphic is published) or **Inactive**,
* tab **Preview** - switch **Light**/**Dark**, preview background selection (**Transparent**, **Light**, **Dark**), zoom from 25% to 400% and **Fullscreen**,
* tab **Information** - application, file name, format, dimensions, size, size limit, latest version, author, and modification date,
* field **Relative path** - path of the selected variant with the **Copy address**.

<figure><img src="https://2112972046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2Fgit-blob-2ca166d0d622c7308f3a23a3c2477da416ffe03a%2Fgrafiki-aplikacji-03-szczegoly-light.png?alt=media" alt=""><figcaption><p><em><strong>Figure 3.</strong> Graphic details - light variant</em></p></figcaption></figure>

<figure><img src="https://2112972046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2Fgit-blob-c815e372ea3b86c84801dd96649455c1aabe79d2%2Fgrafiki-aplikacji-04-szczegoly-dark.png?alt=media" alt=""><figcaption><p><em><strong>Figure 4.</strong> Graphic details - dark variant on a dark background</em></p></figcaption></figure>

If the graphic does not have a dark variant, after selecting **Dark** the preview shows the light file with a note that the dark variant uses the light file.

## Adding a new graphic version

A new version replaces the graphic files without changing its name or path. This allows, for example, updating a logo in all forms that use it, without editing those forms.

1. Open the graphic details.
2. Click **Add new version**. The **Edit graphic** window will open with the current light and dark files.
3. In the **Light variant** tab, click **Change file** and select a new file or drag it onto the field.
4. (Optional) In the **Dark variant** you can:
   * add or change the dark file,
   * click **Delete file** - from now on, at the path `dark` the light file will be published.
5. Click **Publish**.

Example: graphic `logo.jpg` in the application `demo` has the latest version 1.0. After replacing the light file with a new JPG file and clicking **Publish** the graphic details show the new preview, dimensions and size, and **Latest version: 1.1**. Path `graphic/demo/light/logo.jpg` does not change.

<figure><img src="https://2112972046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2Fgit-blob-99bd2f6c203b93d34ca94ec5125bb36ce9422845%2Fgrafiki-aplikacji-06-nowa-wersja.png?alt=media" alt=""><figcaption><p><em><strong>Figure 5.</strong> "Edit graphic" window after clicking "Add new version"</em></p></figcaption></figure>

In the window **Edit graphic**:

* the fields **Name in URL**, **Light path** and **Dark path** are locked,
* **Supported formats** they show only the format of the current graphic - e.g. for a JPG graphic you can upload only JPG files; a file in a different format means an error at the **Supported format**,
* a size limit of 5 MB applies to each variant,
* button **Publish** is active only after changing one of the files and only when the checklist contains no errors.

After publishing:

* the previous graphic files are replaced with new ones - version history is not available and the previous version cannot be restored,
* the latest graphic version increases by 1 in the part after the dot, e.g. from 1.0 to 1.1,
* the application version does not change - the application immediately uses the new graphic version,
* the preview in graphic details and the thumbnail in the graphics list refresh immediately.

{% hint style="info" %}
The form may still display the previous graphic version for about 5 minutes because the browser stores it in cache.
{% endhint %}

{% hint style="warning" %}
If the graphic was added with light and dark files in different formats, when adding a new version you must replace the dark file with a file in the light format or remove the dark variant.
{% endhint %}

## Using a graphic in a form

A graphic is inserted into a form by its relative path - in the component **Image** or in content. The path can be copied in the graphic details from the **Relative path**field, e.g. `graphic/demo/light/logo.svg`.

### In the Image component

1. Open the application form and add the **Image** (Image) component.
2. In the **Image link** field, paste the graphic path.
3. In the **WCAG** section, set **Presentation** and fill in the alternative text according to the [component description](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/biblioteka-komponentow-bazowych/4-tresci/obraz-image.md).

### In content (TextContent)

In content, the graphic is inserted like any other image - by providing its relative path. Example in [Wiki Markup](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/biblioteka-komponentow-bazowych/4-tresci/tresc-textcontent/tresc-przy-pomocy-wiki-markup.md#obrazki) syntax with alternative text:

```
{img:alt=Logo Demo}graphic/demo/light/logo.svg{img}
```

The same image in HTML:

```html
<img src="graphic/demo/light/logo.svg" alt="Logo Demo">
```

## Deleting a graphic

1. Open the graphic details.
2. Click **Delete**.

The graphic disappears from the list, and the application version increases. From now on, the light and dark paths of the graphic return a 404 error, and its name can be used again.

Immediately after deletion, a message appears with the **Restore**button, which undoes the deletion. Restoration is not possible if a graphic with the same name has been added in the meantime.

<figure><img src="https://2112972046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2Fgit-blob-f0366fda94e8e9420c1813f29d1a7dc6afbc694d%2Fgrafiki-aplikacji-05-usunieto-przywroc.png?alt=media" alt=""><figcaption><p><em><strong>Figure 6.</strong> Message after deleting a graphic with the "Restore" button</em></p></figcaption></figure>

{% hint style="warning" %}
Before deleting a graphic, check whether forms use it. A form that refers to a deleted graphic will not display it.
{% endhint %}

## Moving graphics between environments

Graphics are moved together with the application - there is no separate export of graphics.

* **Application export** (**Issue**) - if the application has graphics, instead of the `.artifact` file is created `.zip` file with the application definition and graphic files. More: [Application export/import](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/aplikacja-biznesowa/zarzadzanie-aplikacja/eksport-import-aplikacji.md).
* **Application import** (**Import application**) - select the file `.zip`. Graphics from the package will be saved and published in the target environment.
* **Environments module** - migration and application export also transfer its graphics. More: [Environments module](https://docs.eximee.com/documentation/documentation-en/eksploatacja-aplikacji/designer/srodowiska.md).

The published version of each application graphic is included in the package, in both variants.

## Related topics

* [Application export/import](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/aplikacja-biznesowa/zarzadzanie-aplikacja/eksport-import-aplikacji.md)
* [Environments module](https://docs.eximee.com/documentation/documentation-en/eksploatacja-aplikacji/designer/srodowiska.md)
* [Image - Image](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/biblioteka-komponentow-bazowych/4-tresci/obraz-image.md)
* [Naming conventions for application elements](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/aplikacja-biznesowa/elementy-aplikacji-artefakty/konwencje-nazewnicze-elementow-aplikacji.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/aplikacja-biznesowa/elementy-aplikacji-artefakty/grafiki-aplikacji.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
