Inscribed Circle

Choose the image center as the center of a circle, and crop the image according to the specified radius. The image then is cropped into a circle. For details, see Table 1.

Operation name: circle

Table 1 Description for inscribed circle

Parameter

Value Description

Code Example

r

Circular radius of the cropped image, ranging [0, half of the shorter side of the image].

image/circle,r_100

NOTE:
  • If the image is output in JPG format, the area outside the inscribed circle is white. If the image is output in vector format such as .png.webp, and .bmp, the area outside the inscribed circle is transparent. It is advisable to output the image in .png format.
  • If r is larger than half of the shorter side, the inscribed circle output is still the largest inscribed circle of the image (with a radius equal to half of the shorter length).

Example

Set the radius of the cropped image to 100 and output the image in JPG format. Set the area outside the inscribed circle to white.

https://obs.cn-north-1.myhwclouds.com/ya89soshla6s4uma-ims-example-cn-north-1/example.jpg?x-image-process=image/circle,r_100

Registration