0040-00000318

Updated at:

Problem description

The color parameter in the image resize request contains an invalid value.

Causes

The color parameter accepts only 6-character RGB hex strings (RRGGBB format). Common valid values include 000000 (black) and FFFFFF (white). Values with more than 6 characters are rejected.

Examples

The following request fails because AABBCCDD exceeds the 6-character limit on the value of the color parameter.

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

Solutions

Replace color_AABBCCDD with a valid 6-character RGB hex value. For example, use color_AABBCC.

References

Resize images