Language
Appearance
在某些业务场景下,可能需要将图片裁剪为圆形(例如:头像),本插件提供了开箱即用的预设模式支持,只需要传入 presetMode 的相关选项。
presetMode
TIP
请注意,圆形模式下,裁剪结果固定为 .png 文件。
.png
Click the button to select the picture first, and it will enter the cutting process.
可以参考 demo 的用法自行调整:查看本 demo 源码 。