Updated on 2026-11-24 GMT+08:00

Getting Information About an Image

You can obtain metadata for an uploaded image, such as its dimensions, format, and size, for frontend display or data processing. You can get the information about an image only by making an API call. If the image contains Exif data, the complete Exif data is returned in JSON.

This operation is represented by info.

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

Exchangeable Image File Format (Exif) data is metadata embedded in JPEG or TIFF images. It includes information recorded when an image is captured, such as the camera model, capture time, and shooting mode, as well as thumbnail data and other image attributes.

Example of Getting Information About an Image

The following example queries 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
}

Helpful Links