真机保存图片后,图片不是原图的宽高。
- 当前 Bug 的表现(可附上截图) 使用getImageInfo获取网图临时路径后再用saveImageToPhotosAlbum保存图片到真机相册,结果图片的宽高不是原图的宽高,明显上面和下面一些部分被截掉了。iPhone 7 IOS12.2 - 预期表现 - 复现路径 - 提供一个最简复现 Demo [代码]wx.getImageInfo({[代码][代码] [代码][代码]src: url,[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]wx.saveImageToPhotosAlbum({[代码][代码] [代码][代码]filePath: res.path,[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]wx.showToast({[代码][代码] [代码][代码]title: [代码][代码]'保存成功'[代码][代码],[代码][代码] [代码][代码]icon: [代码][代码]'none'[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]if[代码] [代码](res.errMsg.indexOf([代码][代码]'fail cancel'[代码][代码]) < 0) {[代码][代码] [代码][代码]wx.showModal({[代码][代码] [代码][代码]title: [代码][代码]'提示'[代码][代码],[代码][代码] [代码][代码]content: [代码][代码]'保存失败'[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码] [代码][代码]},[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]wx.showModal({[代码][代码] [代码][代码]title: [代码][代码]'提示'[代码][代码],[代码][代码] [代码][代码]// content: res.errMsg || '图片信息未获取成功'[代码][代码] [代码][代码]content: [代码][代码]'图片信息未获取成功'[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码]})[代码]