原生Js的图片裁剪

cropbox github地址:https://github.com/tuxingsheng/cropbox.git 在线访问地址:https://tuxingsheng.github.io/cropbox/ 配置参数说明

this.defaults = { // crop选择器 el: '#crop', // 触发器 cp: '#cropImg', // crop背景色 cropBgColor: 'rgba(0, 0, 0, .4)', // crop img地址 imgSrc: '', // 不用修改 imageBox: '.crop-wrap-content', thumbBox: '.crop-wrap-thum', spinner: '.crop-wrap-spinner', // 返回裁剪之后图片的base64和blob二进制 callback: function (dataURL, dataBlob) { console.log(dataURL, dataBlob); } };

版权声明:

1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。
2、网站不提供资料下载,如需下载请到原作者页面进行下载。