0040-00000012
Updated at:
Problem description
A source image decoding exception occurs when you use OSS image processing.
Causes
The source image exceeds the pixel limit. OSS image processing supports source images with up to 250,000,000 pixels. Images that exceed this limit cannot be decoded.
Examples
The following GET request triggers this error because the source image has more than 250,000,000 pixels:
GET /example_image?x-oss-process=image/format,jpg HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: application/xmlSolutions
Replace the source image with one that has 250,000,000 pixels or fewer. To check the pixel count, multiply the image width by its height.
The following GET request succeeds with a compliant source image:
GET /example_image?x-oss-process=image/format,jpg HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: image/jpegFor the full list of source image requirements, see Overview.
References
Is this page helpful?