Retrieve image information

更新时间:
复制 MD 格式

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

ParameterTypeDescription
infoURL parameterReturns 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.

FieldDescriptionExample value
LengthFile size1055089
WidthImage width1920
HeightImage height1080
QualityCompression quality100
FormatImage format"JPEG"
OrientationEXIF orientation metadata"UNDEFINED"

Example

Request URL:

http(s)://example.com/image01.png?image_process=info

Response:

{
  "Length": 1055089,
  "Width": 1920,
  "Height": 1080,
  "Quality": 100,
  "Format": "JPEG",
  "Orientation": "UNDEFINED"
}