0040-00000215

Updated at:

Description

The value specified for the `auto-orient` parameter for image processing is invalid.

Cause

The value of the `auto-orient` parameter is not a number or is outside the valid range.

Example

GET /example_image?x-oss-process=image/resize,w_100/auto-orient,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 auto-orient parameter.

Solution

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

Specify a valid value for the auto-orient parameter.

For the parameter requirements for the auto-rotate operator, see Auto-rotate.

Example

GET /example_image?x-oss-process=image/resize,w_100/auto-orient,10 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 10 is outside the value range of the auto-orient parameter.

Solution

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

Specify a valid value for the auto-orient parameter.

For more information about the parameter requirements, see Auto-rotate.

Reference