Found 0 result in total
Content is empty
If you don't find the content you expect, please try another search term
Last updated:2021-11-02 17:53:48
imgAve
You can call this operation to query the dominant color of an image and calculate the average color of the image. The result is returned in the 0xRRGGBB format. Supported image formats: JPG, JPEG, BMP, PNG, WebP, TIFF, PCX, SVG, HT, GIF, and WBMP. Unsupported image formats: AI, TGA, PSD, EPS, RAW, and PCD.
To call this operation, you must have the GetObject permission. If the object does not exist, the following errors may be returned:
https://BucketName.${Endpoint of the bucket}/object@base@tag=imgAve HTTP/1.1
Host: BucketName.${Endpoint of the bucket}
You do not need to set parameters for this request.
The request does not require a special header.
Header | Required | Description |
---|---|---|
Content-Type | Yes | The MIME type, which is fixed to application/json. |
The response is provided in a JSON string.
Field | Description |
---|---|
RGB | The dominant color of the image, in the 0xRRGGBB format. |
HTTP status code | Description |
---|---|
400 | The request format is incorrect. |
404 | The specified resource does not exist. |
403 | The access is denied. |
500 | An internal server error occurred. |
1. Enter the following request in the address bar of your web browser:
https://ks3-resources.ks3-cn-beijing.ksyuncs.com/kssyun.png@base@tag=imgAve
2. Sample response
{
"RGB":"0x6c6d74"
}
Pure Mode