0040-00000362

Updated at:

Problem description

An error is reported that the x parameter is invalid when you add an image watermark using an earlier version of Image Service.

Cause

The value of the x parameter is outside the valid range of [0, 4096].

Sample Problem

GET /example_image@watermark=1&object=cGFuZGEucG5n&x=5000 HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: application/xml

For example, a request that includes the parameter x=5000 causes this error because the value 5000 is outside the valid range of [0, 4096].

Solution

Use the q parameter in the request string as specified.

References