Essential information

Last updated:2020-08-21 18:14:28

Image Processing

Basic image information




Basic image information includes the image format, image size, image width and height, color model, image frame, and the result is returned in JSON format.

  • The image format is the format of images stored in the computer. Common storage formats are bmp, jpg, tiff, gif, pcx, tga, exif, fpx, svg, psd, cdr, pcd, dxf, ufo, eps, ai, raw, and others.

  • The image size refers to the size of the storage space taken up by the image in B\KB\MB. The size of more than 1024 B will be converted to KB, and the size of more than 1024 KB will be converted to MB.

  • The image width and height are expressed in pixels.

  • The color model, also called the color pattern, is an algorithm for representing the color in the digital world. To represent colors in the digital world, the color is usually divided into several components. Different coloring mechanisms determine the difference between color devices that synthesize colors directly with the color light such as the display, projector and scanner and the printing devices that use pigments such as the printer and printing machine. Usually, there are HSB, RGB, Lab and CMYK concentration model.

  • The number of image frames refers to the number of static images that make up a GIF picture.


You need the GetObject permission for this operation. If the object you request does not exist, you may have the following two errors returned:

  • If you have the ListBucket permission on the bucket of this object, the status code 404 error will be returned.
  • If you don’t have the ListBucket permission on the bucket of this object, the status code 403 error will be returned.


	https://BucketName.${domain name of the region where the bucket is located}/[email protected]@tag=imageInfo  HTTP/1.1
	Host: BucketName.${domain name of the region where the bucket is located}
Request parameters

The request requires no parameters.

Request header

The request does not require to set special header.


Response header
Header name Mandatory Description
Content-Type Yes MIME type, which is fixed as application/json
Response content
Field name Description
Format Image format, such as png, jpg, gif, bmp
Size Size of the storage space taken up by the image in B\KB\MB
Width Image width in pixels
Height Image height in pixels
colorModel Color model, usually including HSB, RGB, Lab and CMYK concentration model
frameNumber Number of frames, this item will be returned for gif image
Special error
HTTP status code Meaning
400 Wrong request message format
404 Resources not exist
403 Access denied
500 Operation at the server side fails.


1. Enter the following request in Web browser:[email protected]@tag=imageInfo

2. Get the result returned

Did you find the above information helpful?

Mostly Unhelpful
A little helpful
Very helpful

What might be the problems?

Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions


Please give us your feedback.


Thank you for your feedback.