All Products
Search
Document Center

Intelligent Media Management:EncodeBlindWatermark

Last Updated:Aug 28, 2026

Embeds invisible text watermarks into an image without affecting image quality or data integrity. Extract watermarks with the CreateDecodeBlindWatermarkTask operation.

Operation description

  • Before you call this operation, review IMM billing.

  • You have created an IMM project. CreateProject.

  • Only text can be embedded as blind watermarks.

  • The output image format matches the input image format.

  • Blind watermarks survive compression, scaling, cropping, and color transformation.

  • Pure black-and-white images and images smaller than approximately 200 × 200 px are not supported.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

imm:EncodeBlindWatermark

none

*Project

acs:imm:{#regionId}:{#accountId}:project/{#ProjectName}

None None

Request parameters

Parameter

Type

Required

Description

Example

ProjectName

string

Yes

The project name. CreateProject.

test-project

SourceURI

string

Yes

The OSS URI of the source image.

Format: oss://${Bucket}/${Object}, where ${Bucket} is an OSS bucket in the same region as the project and ${Object} is the object path with extension.

Supported formats: JPG, PNG, BMP, TIFF, and WebP.

Image size: 80 × 80 px minimum, 10,000 px maximum.

oss://test-bucket/test-object.jpg

TargetURI

string

Yes

The OSS URI of the output image.

Format: oss://${Bucket}/${Object}, where ${Bucket} is a bucket in the same region as the project and ${Object} is the object path with extension.

Note
  • The output image format matches the input image format.

oss://test-bucket/target-object.jpg

Content

string

No

The watermark text. Maximum length: 256 characters.

Copyright Alibaba Cloud

StrengthLevel

string

No

The watermark strength. Higher values improve attack resistance but increase image distortion. Default: low. Valid values: low, medium, and high.

Valid values:

  • high :

    high

  • low :

    low

  • medium :

    medium

low

ImageQuality

integer

No

This parameter applies only to JPG images.

The output image quality. Default: 90. Valid values: 70 to 100. Higher values produce larger files with better watermark fidelity.

90

Response elements

Element

Type

Description

Example

object

The response body.

RequestId

string

The request ID.

8E0DD64B-28C6-4653-8FF7-93E4C234BCF0

Examples

Success response

JSON format

{
  "RequestId": "8E0DD64B-28C6-4653-8FF7-93E4C234BCF0"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.