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
- For image processing FAQs, see Image Processing FAQs.
- For more image processing operations (such as cropping and watermarking), see Image Processing.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot