All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

imageCircle

Last updated:2021-11-02 17:53:48

Operation

imageCircle

Description

When the incircle radius is specified, the source image is cropped as an incircle based on the specified radius. If the specified radius is greater than the radius of the largest incircle of the image, the image is cropped based on the radius of the largest incircle.

  • Supported source image formats: JPG, JPEG, and PNG.
  • If the final format of the image is PNG that supports alpha channels, the areas of the image outside the circle become transparent. If the final format of the image is JPG or JPEG, the areas of the image outside the circle become white.

Request

Syntax

https://BucketName.${Endpoint of the bucket}/object@base@
    tag=imgCircle   
    &i=<radio>   
    &F=<format>     HTTP/1.1
Host: BucketName.${Endpoint of the bucket}

Request parameters

Parameter Required Description
tag Yes The tag of the operation.
i Yes The incircle radius based on which the source image is cropped. If the specified radius is greater than the radius of the largest incircle of the image, the image is cropped based on the radius of the largest incircle.
F No The format of the cropped image. By default, the format of the source image is used. Supported formats: JPG, JPEG, and PNG.

Crop the source image as an incircle with a radius of 100 pixels and then convert the obtained image to the PNG format

Set the incircle radius to 100 pixels

http://ks3-resources.ks3-cn-beijing.ksyuncs.com/suiyi.jpg@base@tag=imgCircle&i=100&F=png

suiyi.png

On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback