# Static watermark

This function will watermark selected images with the same watermark - an image set in the Cloudimage admin console. This is useful for placing your company logo, name, or other copyright information. If you would like to watermark different images with different watermarks, please refer to the [dynamic-watermark](https://docs.cloudimage.io/transformations/image-watermarking/dynamic-watermark "mention") section.

## Step 1. Upload your watermark <a href="#od_90635baf" id="od_90635baf"></a>

Log in to your Cloudimage admin console, navigate to *Image Settings / Watermark,* and upload your default watermark using the uploader.

<figure><img src="https://content.gitbook.com/content/IDIcmPiz7q6Sr6ZHHQxV/blobs/dHtVrSTBbaUHgBIKeEBb/image.png" alt=""><figcaption></figcaption></figure>

## Step 2. Start watermarking!

### Available parameters

| Parameter                                               | Syntax                                                                                                            | Description                                                                                                                    |       |        |                           |                     |                                                   |
| ------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ----- | ------ | ------------------------- | ------------------- | ------------------------------------------------- |
| use watermark                                           | <mark style="color:purple;">**wat=1**</mark>                                                                      | **(required)** Activates the watermark function                                                                                |       |        |                           |                     |                                                   |
| watermark gravity                                       | <p><mark style="color:purple;"><strong>wat\_gravity=X</strong></mark><br><code>X=\[north                          | south]\[east                                                                                                                   | west] | center | </code><br><code>absolute | relative</code></p> | Defines the position to "anchor" the watermark to |
| watermark scaling (relative to original watermark size) | <p><mark style="color:purple;"><strong>wat\_scale=X</strong></mark><br><code>X=0..100</code></p>                  | Watermark image scaling defined in in percent of the watermark dimensions                                                      |       |        |                           |                     |                                                   |
| watermark scaling (relative to output image size)       | <p><mark style="color:purple;"><strong>wat\_scale=Xp</strong></mark><br><code>X=0..100p</code></p>                | Watermark image scaling defined in in percent of the output image dimensions                                                   |       |        |                           |                     |                                                   |
| watermark padding                                       | <p><mark style="color:purple;"><strong>wat\_pad=X\[p]\[,Y\[p]]</strong></mark><br><code>X/Y=0..100\[p]</code></p> | Adds padding from the anchoring point in pixels (**X**) or in percent (**Xp**)                                                 |       |        |                           |                     |                                                   |
| watermark positon                                       | <mark style="color:purple;">**wat\_pos=X\[,Y]**</mark>                                                            | <p>sets the position in percent from the resized image; works only with<br>wat\_gravity=absolute and wat\_gravity=relative</p> |       |        |                           |                     |                                                   |
| watermark opacity                                       | <p><mark style="color:purple;"><strong>wat\_opacity=X</strong></mark><br><code>X=0..1</code></p>                  | Defines watermark opacity                                                                                                      |       |        |                           |                     |                                                   |

#### Use watermark <a href="#od_cdeda1ea" id="od_cdeda1ea"></a>

To activate the watermark function, you need to include the **wat=1** parameter.

#### Watermark gravity <a href="#od_cdeda1ea" id="od_cdeda1ea"></a>

The **wat\_gravity** parameter allows you to define the position of the watermark. You can choose between "fixed" anchor points (**east**, **northeast**, **north**, **northwest**, **west**, **southwest**, **south**, **southeast**, and **center**) or define the exact position (**relative**, **absolute**).

When using "compass" point gravity, the **wat\_pad** parameter defines the offset from the chosen position. The padding can be defined in pixels (**wat\_pad=X\[,Y]**) or in percent of output size (**wat\_pad=Xp\[,Yp]**). The padding is applied after scaling the final image and then it is compressed (see Compression) and delivered via CDN.

To set the exact position of the watermark, you can choose **absolute** or **relative** gravity and use the **wat\_pos** parameter to define the position of the top left or center point of the watermark, respectively. The position is always defined in percent of the resized image dimensions.

#### Watermark size

The watermark can be scaled relative to the original watermark image (**wat\_scale=X**) or relative to the output image (**wat\_scale=Xp**).

{% hint style="info" %}
To keep the watermark-to-image proportions for all image resizes, you should use the **wat\_scale=Xp**.
{% endhint %}

Please note that the watermark cannot be larger than the image - if larger, it is always scaled down first to match the image dimensions. Then, the **wat\_scale** parameter values are applied.

### Examples

| Preview                                                                                                                               | Syntax                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ![](https://content.gitbook.com/content/IDIcmPiz7q6Sr6ZHHQxV/blobs/nWn5tPABgTXjAHebqx5C/image.png)                                    | [/samples.scaleflex.com/earth1.jpg?<mark style="color:orange;">**w=400**</mark>&<mark style="color:orange;">**h=240**</mark>&<mark style="color:purple;">**wat=1**</mark>&<mark style="color:purple;">**wat\_scale=30**</mark>&<mark style="color:purple;">**wat\_gravity=northwest**</mark>&<mark style="color:purple;">**wat\_pad=10,8**</mark>](https://doc.cloudimg.io/https://samples.scaleflex.com/earth1.jpg?w=400\&h=240\&wat=1\&wat_scale=30\&wat_gravity=northwest\&wat_pad=10,8)                                                                                                                                                                                                                                                         |
| ![](https://content.gitbook.com/content/IDIcmPiz7q6Sr6ZHHQxV/blobs/I2dTOZfeLFjyV6W9NwcI/image.png)                                    | [/samples.scaleflex.com/boat.jpg?<mark style="color:orange;">**w=400**</mark>&<mark style="color:purple;">**wat=1**</mark>&<mark style="color:purple;">**wat\_scale=80**</mark>&<mark style="color:purple;">**wat\_gravity=center**</mark>&<mark style="color:purple;">**wat\_opacity=0.2**</mark>](https://doc.cloudimg.io/https://samples.scaleflex.com/boat.jpg?w=400\&wat=1\&wat_scale=80\&wat_gravity=center\&wat_opacity=0.2)                                                                                                                                                                                                                                                                                                                 |
| ![](https://content.gitbook.com/content/IDIcmPiz7q6Sr6ZHHQxV/blobs/pifZysw4nNuY51xbFLuB/image.png)                                    | [/samples.scaleflex.com/ny\_doc.jpg?<mark style="color:orange;">**w=400**</mark>&<mark style="color:purple;">**wat=1**</mark>&<mark style="color:purple;">**wat\_scale=45**</mark>&<mark style="color:purple;">**wat\_gravity=north**</mark>&<mark style="color:purple;">**wat\_pad=0p,5p**</mark>](https://doc.cloudimg.io/https://samples.scaleflex.com/ny_doc.jpg?w=400\&wat=1\&wat_scale=45\&wat_gravity=north\&wat_pad=0p,5p)                                                                                                                                                                                                                                                                                                                  |
| ![](https://content.gitbook.com/content/IDIcmPiz7q6Sr6ZHHQxV/blobs/JhtW48k73xaTNigepnF8/image.png)                                    | <p>Watermark scaled down to 45% of its original size (1178px), results in 530px watermark:<br><a href="https://doc.cloudimg.io/https://samples.scaleflex.com/tesla.jpg?w=1400&#x26;wat=1&#x26;wat_gravity=southwest&#x26;wat_scale=45&#x26;wat_pad=25">/samples.scaleflex.com/tesla.jpg?<mark style="color:orange;"><strong>w=1400</strong></mark>&<mark style="color:purple;"><strong>wat=1</strong></mark>&<mark style="color:purple;"><strong>wat\_gravity=southwest</strong></mark>&<mark style="color:purple;"><strong>wat\_scale=45</strong></mark>&<mark style="color:purple;"><strong>wat\_pad=15</strong></mark></a></p>                                                                                                                   |
| ![](https://content.gitbook.com/content/IDIcmPiz7q6Sr6ZHHQxV/blobs/ieh9GZOhHshWJt0kBuWD/image.png)                                    | <p>Watermark scaled relative to the output image dimensions (618px watermark):<br><a href="https://doc.cloudimg.io/https://samples.scaleflex.com/tesla.jpg?w=1400&#x26;wat=1&#x26;wat_gravity=southwest&#x26;wat_scale=45p&#x26;wat_pad=25">/samples.scaleflex.com/tesla.jpg?<mark style="color:orange;"><strong>w=1400</strong></mark>&<mark style="color:purple;"><strong>wat=1</strong></mark>&<mark style="color:purple;"><strong>wat\_gravity=southwest</strong></mark>&<mark style="color:purple;"><strong>wat\_scale=45p</strong></mark>&<mark style="color:purple;"><strong>wat\_pad=15</strong></mark></a></p>                                                                                                                             |
| <img src="https://content.gitbook.com/content/IDIcmPiz7q6Sr6ZHHQxV/blobs/KsrXNwMZraWEmSPdn2ak/image.png" alt="" data-size="original"> | <p>Absolute positioning - the top left corner of the watermark is position at 7% and 5% of the image width and height, respectively:</p><p><a href="https://doc.cloudimg.io/https://samples.scaleflex.com/earth1.jpg?w=400&#x26;h=240&#x26;wat=1&#x26;wat_scale=30&#x26;wat_gravity=absolute&#x26;wat_pos=7,5">/samples.scaleflex.com/earth1.jpg?<mark style="color:orange;"><strong>w=400</strong></mark>&<mark style="color:orange;"><strong>h=240</strong></mark>&<mark style="color:purple;"><strong>wat=1</strong></mark>&<mark style="color:purple;"><strong>wat\_scale=30</strong></mark>&<mark style="color:purple;"><strong>wat\_gravity=absolute</strong></mark>&<mark style="color:purple;"><strong>wat\_pos=7,5</strong></mark></a></p> |


---

# 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://docs.cloudimage.io/transformations/image-watermarking/static-watermark.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.
