0040-00000338

Updated at:

Problem description

The p parameter is reported as invalid when you proportionally resize an image using an earlier version of Image Service.

Cause

The value of the p parameter is outside the valid range of 1 to 1000.

Example problem

GET /example_image@2000p HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: application/xml

An error is returned because the value 2000 in 2000p is outside the valid range of [1-1000].

Solution

Specify the h parameter in the request string.

References