Updated on 2026-08-21 GMT+08:00

Getting Information About an Image

You can get the information about an image only by making an API call.

The image information you can get includes the width, height, size, and format of an image. If the image contains EXIF Data, the EXIF data will be returned in JSON.

This operation is represented by info.

For details about how to use image styles, see Processing the Image.

Example

Below gives an example of querying information about the example.jpg image:

https://hw-image-demo.obs.ap-southeast-1.myhuaweicloud.com/example.jpg?x-image-process=image/info

{      
     "format":"JPEG",
     "height":2000,
     "size":1046583,
     "width":2668
}