0040-00000385
Problem
When you add a text watermark to an image using a previous version of Image Service, the specified color parameter is invalid.
Cause
The Base64-decoded value of the color parameter does not conform to the hexadecimal color code format.
Examples
GET /example_image@watermark=2&text=SGVsbG8gQWxpYmFiYSBDbG91ZCBJbWFnZSE=&color=MDAwMDAw HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: application/xmlIn the preceding request, the Base64-decoded value of color=MDAwMDAw is 000000. This value is missing the required # prefix and does not conform to the hexadecimal color code format. This causes the error.
GET /example_image@watermark=2&text=SGVsbG8gQWxpYmFiYSBDbG91ZCBJbWFnZSE=&color=IzAwMDAw HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: application/xmlIn the preceding request, the Base64-decoded value of color=IzAwMDAw is #00000. This value is missing one hexadecimal digit and does not conform to the hexadecimal color code format. This causes the error.
GET /example_image@watermark=2&text=SGVsbG8gQWxpYmFiYSBDbG91ZCBJbWFnZSE=&color=I2ZmZmZmZw HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: application/xmlIn the preceding request, the Base64-decoded value of color=I2ZmZmZmZw is #fffffg. This value contains a non-hexadecimal character and does not conform to the hexadecimal color code format. This causes the error.
Solution
Specify the color parameter in the request string in the required format.