Problem description
An image pre-processing parameter is invalid in the request to add image watermarks by using the new version of Image Processing (IMG) service.
Causes
The Base64-encoded value of the image parameter specified in the x-oss-process parameter contains /watermark
, which indicates nested watermarking.
Examples
GET /example_image?x-oss-process=image/watermark,image_cGFuZGEucG5nP3gtb3NzLXByb2Nlc3M9aW1hZ2Uvd2F0ZXJtYXJrLGltYWdlX2NHRnVaR0V1Y0c 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 image_cGFuZGEucG5nP3gtb3NzLXByb2Nlc3M9aW1hZ2Uvd2F0ZXJtYXJrLGltYWdlX2NHRnVaR0V1Y0c
is the Base64-encoded string of panda.png?x-oss-process=image/watermark,image_cGFuZGEucG
and the latter string contains /
.
Solutions
Make sure that the pre-processing parameters are valid.