You can add watermarks to images and files stored in Object Storage Service (OSS) to protect your ownership and prevent unauthorized use. You can add text watermarks, image watermarks, or a combination of both to your images.
Access type
@watermark=3&object=<encodeObject>&text=<encodeText>&type=<encodeType>&size=<size>&color=<encodecolor>&order=<order>&align=<align>&interval=<interval>&t=<t>&p=<p>&x=<x>&y=<y>The watermark and object parameters are required.
Parameters
Image-text watermarks support the parameters used for text and image watermarks.
Parameter | Description | Value | Type |
order | The order of the text and image watermarks. |
| Optional |
align | The alignment of the text and image. |
| Optional parameters |
interval | The space between the text and the image. | Valid values: [0, 1000] | Optional parameters |
For more information about watermark position parameters, see Basic parameters.
Examples
Add a text watermark
The watermark text is "Hello, Image Service!" with a 50% shade. The watermark is placed in the bottom-right corner of the image with horizontal and vertical margins of 10 pixels and 90% transparency.

Add an image watermark
The image object
panda.pngis used as the watermark. It is placed in the bottom-right corner of the image with horizontal and vertical margins of 10 pixels and 90% transparency.
Add an image-text watermark
The watermark text is "Hello, Image Service!". The text and the image object `panda.png` are placed together in the bottom-right corner of the image. They have horizontal and vertical margins of 10 pixels and 90% transparency. The image appears before the text. The text is center-aligned with the image, and the space between them is 10 pixels.
