0040-00000256

Updated at:

Problem description

The size parameter specified for text watermarks is invalid.

Causes

The size parameter specified for text watermarks in the image processing request is set to a non-number value or an integral number outside the (0,1000] range. The value of the size parameter for text watermark processing must be an integer in the range of (0,1000].

Examples

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

The error is returned for the preceding request because the size parameter is set to 2000, which is outside the value range of the parameter.

Solutions

Specify an integer in the (0,1000] range as the value of the size parameter.

References

Add watermarks