getUrlCircle method

String getUrlCircle(
  1. String originalUrl,
  2. int? radius
)

图片内切圆 originalUrl 图片地址 radius 圆半径

Implementation

String getUrlCircle(String originalUrl, int? radius) {
  var arguments = OssImageArguments().builder();
  arguments.resizeW(2 * (radius ?? 0));
  arguments.circle(radius);
  arguments.format(ImageFormat.webp);
  return getUrl(originalUrl, arguments.toBuffer());
}