0040-00000010

Updated at:

Problem description

An exception occurs when you specify Image Processing (IMG) parameters to decode a source image in WebP format.

Causes

  • The source image in WebP format is corrupted.

  • The source image is a dynamic image in the WebP format and the whitelist for WebP dynamic image decoding is not configured.

Examples

The following request triggers the exception when the source image cannot be decoded:

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/xml

Solutions

  • If the source image is corrupted, replace it with a valid WebP image and resubmit the request.

  • If the source image may be a dynamic image in the WebP format, use ImageMagicksubmit a ticket to check the source image. If the source image is a dynamic image in the WebP format and the whitelist for WebP dynamic image decoding is not configured, Submit a ticket to apply for a whitelist.

References