0040-00000384

Updated at:

Problem description

The color parameter is invalid when you add a text watermark to an image using an earlier version of Image Service.

Cause

The value of the color parameter is not URL-safe Base64 encoded.

Examples

GET /example_image@watermark=2&text=SGVsbG8gQWxpYmFiYSBDbG91ZCE=&color=#000000 HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: application/xml

In the preceding request, the error occurs because the value of the color parameter, #000000, is not URL-safe Base64 encoded.

Solution

Specify the color parameter in the request string.

References