0040-00000311
Problem description
An invalid parameter is specified in the image resizing request.
Causes
The m parameter in the image resizing request is invalid. Valid values of the m parameter are:
-
lfit: proportionally resizes the source image to the biggest size within a rectangle based on the specified width and height.
-
mfit: proportionally resizes the source image to the smallest size outside a rectangle based on the specified width and height.
-
fill: proportionally resizes the source image to the smallest size outside a rectangle, and then crops the resized image from the center based on the specified width and height.
-
pad: resizes the source image to the biggest size within a rectangle based on the specified width and height, and fills the empty space by using a specified color.
-
fixed: forcibly resizes the source image based on the specified width and height.
Examples
GET /example_image?x-oss-process=image/resize,w_100,m_abc 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 abc is not a valid value of the m parameter.
Solutions
Specify a valid value for the m parameter.