0040-00000209
Updated at:
Error description
The value you specified for the g (gravity) parameter in the crop operation is invalid.
Cause
The gravity parameter value you specified is not one of the supported values for the crop operation.
Error example
GET /example_image?x-oss-process=image/crop,w_500,h_500,g_fac HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: application/xml
In this request, fac is not a valid value for the gravity parameter (g). Valid values include: nw, north, ne, west, center, east, sw, south, and se.
Solution
GET /example_image?x-oss-process=image/crop,w_500,h_500,g_se HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: image/jpeg
Replace the invalid gravity value with a valid one. In this corrected example, g_se (southeast) specifies that the crop area is anchored at the bottom-right corner of the image.
For a complete list of valid gravity parameter values and their meanings, see Custom crop.
References
Is this page helpful?