0040-00000009

Updated at:

Problem description

The size of the source image exceeds the limit when you resize the source image.

Causes

The size of the source image exceeds the limit when you resize the source image.

Examples

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

When you resize the source image, an error is reported, which indicates that the size of the source image exceeds the limit.

Solutions

Make sure that the width or height of the source image does not exceed 30,000 pixels and the total size does not exceed 250 million pixels.

The total number of pixels of a dynamic image, such as a GIF image, is calculated by using the following formula: Width × Height × Number of image frames. The total number of pixels of a static image, such as a PNG image, is calculated by using the following formula: Width × Height.

References

Resize images