Help Center/ Object Storage Service/ User Guide/ Data Processing/ Image Processing/ Ignoring Errors and Returning Original Images
Updated on 2025-04-25 GMT+08:00

Ignoring Errors and Returning Original Images

You can edit code on OBS Console or make an API call.

The following operation will ignore errors such as invalid request parameters and excessive image processing, and directly return the original images.

This operation is represented by ignore-error.

Table 1 Parameter description

Parameter

Value Description

Code Example

value

The value can be 0 (default) or 1.

If the value is set to 0, errors will not be ignored. If there is an error, the server returns an error message.

If the value is set to 1, errors will be ignored. If an error occurs, for example, the request parameter is invalid or the image processing exceeds the limit, the server ignores the error and returns the original image.

image/ignore-error,1

Example

Ignore errors.

https://hw-image-demo.obs.ap-southeast-1.myhuaweicloud.com/example.jpg?x-image-process=image/resize,h_10000,h_10000/ignore-error,1

Figure 1 Returned original image when there is an invalid parameter