uni.compressImage 压缩图片

最后更新于:2022-04-02 03:38:26

[TOC] ## uni.compressImage 示例 ``` var that =this; uni.chooseImage({ count: 1, sourceType: ['camera'], success: function (res) { console.log(res) uni.compressImage({ src: res.tempFilePaths[0], quality: 80, success: res => { that._img=res.tempFilePath } }) } }); ```
';