0040-00000014
Problem description
When you use the advanced image compression option in OSS Image Management (IMG) to process an AVIF image, an exception occurs if the image dimensions exceed the encoding or decoding limits.
Causes
Two separate limits apply to AVIF images processed by IMG:
Decoding limit: The width or height of the source AVIF image exceeds 10,000 pixels.
Encoding limit: The pixel count of the output AVIF image exceeds 4,096 × 2,304 pixels.
Examples
Decode exception — converting an oversized AVIF source image to JPEG:
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/xmlEncode exception — converting a JPEG to AVIF when the output exceeds the pixel limit:
GET /example_image.jpg?x-oss-process=image/format,avif HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: application/xmlSolutions
Match the image dimensions to the applicable limit before processing:
Decode exception: Make sure the source AVIF image width and height are both within 10,000 pixels before submitting a decode request.
Encode exception: Make sure the output AVIF image does not exceed 4,096 × 2,304 pixels.