Append the info parameter to an image URL to retrieve its metadata as a JSON response. The response includes the image dimensions, format, quality, and orientation.
Parameters
| Parameter | Type | Description |
|---|---|---|
info | URL parameter | Returns image metadata in JSON format. Append it as the value of image_process in the query string. |
Response fields
The response is a JSON object. The following table describes each field.
| Field | Description | Example value |
|---|---|---|
Length | File size | 1055089 |
Width | Image width | 1920 |
Height | Image height | 1080 |
Quality | Compression quality | 100 |
Format | Image format | "JPEG" |
Orientation | EXIF orientation metadata | "UNDEFINED" |
Example
Request URL:
http(s)://example.com/image01.png?image_process=infoResponse:
{
"Length": 1055089,
"Width": 1920,
"Height": 1080,
"Quality": 100,
"Format": "JPEG",
"Orientation": "UNDEFINED"
}该文章对您有帮助吗?