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

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

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

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈