This feature allows you to save an image in a rounded oblong shape and specify the rounded corner size.

Parameters

This table provides the description and values for parameters for the rounded-corners operation.

Parameter Description Value
r Radius of the cropped rounded corner of an image. [1, 4096] The radius of the largest rounded corner cannot exceed half of the shorter side of the source image.

Caveats

  • If the final format of the image is PNG, WebP, or BMP, and supports transparent channels, the area of the image outside the circular area is transparent. If the final format of the image is JPG,  the area of the image outside the circular area is white. The PNG format is recommended.
  • If the specified radius is greater than the radius of the largest incircle of the source image, the circle is still the largest incircle of the source image.

Example