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
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
imm:EncodeBlindWatermark |
none |
*Project
|
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 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 Note
|
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:
|
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.