Image-text watermarks

更新时间:
复制 MD 格式

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.

  • 0: Image first (default)

  • 1: Text first

Optional

align

The alignment of the text and image.

  • 0: Top alignment (default)

  • 1: Center alignment

  • 2: Bottom alignment

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