0040-00000026

Updated at:

Problem description

The number of watermark images in the request exceeds the limit of 3.

Causes

OSS Image Processing allows a maximum of 3 watermark images per request. A request fails when it contains more than 3 watermark,image_ directives in the x-oss-process parameter.

Examples

The following request fails because it specifies 7 watermark images (the limit is 3):

GET /example_image?x-oss-process=image/watermark,image_cGFuZGEucG5n/watermark,image_cGFuZGEyLnBuZw/watermark,image_cGFuZGEzLnBuZw/watermark,image_cGFuZGE0LnBuZw/watermark,image_cGFuZGE1LnBuZw/watermark,image_cGFuZGE2LnBuZw/watermark,image_cGFuZGE3LnBuZw HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: application/xml
Note: Each image_ value is the Base64 encoding of the watermark image's object name in OSS. For example, cGFuZGEucG5n is the Base64 encoding of panda.png.

Solutions

Reduce the number of watermark images to 3 or fewer per request. The following request is valid because it specifies only 1 watermark image:

GET /example_image?x-oss-process=image/watermark,image_cGFuZGEucG5n HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: application/xml

References