使用 wx.getImageInfo(OBJECT)接口,使用存储文件路径和相对路径在微信6.7.2版本被报错:errMsg:"getImageInfo:fail:file not not found"; 急救
框架类型 | 问题类型 | API/组件名称 | 终端类型 | 微信版本 | 基础库版本 |
---|---|---|---|---|---|
小程序 | Bug | wx.getImageInfo(OBJECT) | 客户端 | 6.7.2 | 2.2.3 |
使用 wx.getImageInfo(OBJECT)接口,使用存储文件路径和相对路径在微信6.7.2版本被报错:errMsg:"getImageInfo:fail:file not not found"; 急救
5 个回答
麻烦给个相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html),我们定位下问题
wechatide://minicode/a07de76a27e3e7836c4ea39d72f75eda
你好 是什么原因啊 能解决么
你好,问题已复现,我们尽快修复
好的 辛苦了
您好 你们这个问题解决了吗 我在ios微信6.7.3也出现了这个问题
同遇到这个问题,很急,楼主解决了吗
不同的机型和版本表现不同,有时可以,有时报错
你好 有解决方法吗
使用网络路径没有问题的 暂时先把图片放在服务器上使用
我们这边是 下载图片的域名没配好 现在可以了
var that = this;
wx.getSystemInfo({
success:function(res){
var width = res.windowWidth
wx.getImageInfo({
src: "../../images/index.png",
success: function (res) {
var height = res.height*width/res.width
console.log(res);
that.setData({
width: width,
height: height
});
},
complete: function(res){
console.log(res);
}
})
}
});