# ​How to Add or Edit Images in a Template

### Add an image

<figure><img src="/files/NuR3SzgMTgpPFv0eo3Eq" alt=""><figcaption></figcaption></figure>

1. Create a new template or open the template for editing.
2. Click inside the document body to place the cursor.
3. In the editor toolbar, click the **Image** ![](/files/s6bunVj6k1e5FS8mImAg) icon.
4. In the file picker, select an image and confirm.
5. The image is inserted at the cursor position.

{% hint style="info" %}
Supported formats:

* .png
* .jpg
* .jpeg
  {% endhint %}

### Edit image settings

{% columns %}
{% column width="58.333333333333336%" %}

1. Click the image to open the size controls.
2. Set the image width in **mm** or **%**.
3. Enter a width value manually, or use presets (25%, 50%, 100%).

{% hint style="info" %}
The height is calculated automatically to keep proportions. Sizing is relative to the document or the table cell where the image is placed.
{% endhint %}
{% endcolumn %}

{% column width="41.666666666666664%" %}

<figure><img src="/files/pJVd1yy2B4VjkxQzOS0W" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

### Restrictions

{% hint style="danger" %}
You cannot add images to a dynamic table.
{% endhint %}

Image upload limits:

* max file size: **5 MB**
* max resolution: **1024 × 768**

Display limit:

* max displayed width: **618 px**

If you upload a 1024×768 image, it will be scaled down to 618 px while keeping proportions.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.docstudio.com/user/template-builder/template-editor/how-to-add-or-edit-images-in-a-template.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
