Inscribed circle

Last updated:2021-04-28 11:03:38

Image processing


Image incircle

Interface

imageCircle

Description

When the incircle radius is set, the cropping operation will crop the incircle of the source image according to the specified radius. If the specified radius is greater than the radius of the largest incircle of the source image, the size of the round will still be the largest incircle of the image.

  • The image format supported includes jpg, jpeg and png.
  • If final format of the image is png (the image that supports transparent channels), the areas of the image outside the round become transparent; if final format of the image is jpg or jpeg, the areas of the image outside the round become white.

Request

Syntax
https://BucketName.${domain name of the region where the bucket is located}/[email protected]@
	tag=imgCircle   
	&i=<radio>   
	&F=<format>   	HTTP/1.1
Host: BucketName.${domain name of the region where the bucket is located}
Request parameters:
Parameter name Mandatory Explanation
tag Yes Operation flag
i Yes For the cropping radius, if the specified radius is greater than the radius of the largest incircle of the source image, the size of the round will still be the largest incircle of the image.
F No Specify the output format of the target thumbnail. The thumbnail will be output in original image format. The output format includes JPG, JPEG and PNG.
Crop an incircle in the image at a radius of 100 and convert it to png format:

Incircle radius of the image is 100 px

http://ks3-cn-beijing.ksyun.com/ks3-resources/[email protected]@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.

问题反馈