请问下图片的压缩原理是怎样的?具体点是把图片大小比例缩小,还是说大小不变,画质清晰度变成多少?
IOS选取图片接口,设置默认原图,图片仍被压缩IOS:11.4,从本地相册选取图片时,sizeType设置为original 后图片仍然遭到压缩,4.8M的图片选择后返回tempFiles 中的size为1.51M,图片后缀为.jpg,任意图片皆可复现,工具上可正常读取原图
2018-06-21+1,也遇到了类似情况,在onLoad里执行了某个函数,模拟器和安卓测试正常,但IOS上有时候进入该页面时,该函数似乎未执行,同事反映在点击特别快的时候可以重现问题; 不知楼主后来可找到原因?
生命周期函数onLoad:在IOS上不执行怎么办?IOS版本:11.2.1 微信版本:6.6.0 调试基础库:1.7.2 我想让他点了这个页面以后就拉起导航,在拉起失败的时候也可以通过 click 来导航,在开发工具上测试是能正常拉起的,在手机上预览的时候就不行了,android设备可以,IOS就不行,测试了iphone6和7,求解决方法。 WXML: [代码]<[代码][代码]map[代码] [代码]id[代码][代码]=[代码][代码]"map"[代码] [代码]longitude[代码][代码]=[代码][代码]"102.617047"[代码] [代码]latitude[代码][代码]=[代码][代码]"24.987896"[代码] [代码]markers[代码][代码]=[代码][代码]"{{markers}}"[代码][代码]scale[代码][代码]=[代码][代码]"10"[代码] [代码]style[代码][代码]=[代码][代码]"width: 100%; height: 680rpx;"[代码] [代码]bindtap[代码][代码]=[代码][代码]"click"[代码][代码]>[代码][代码]</[代码][代码]map[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]bindtap[代码][代码]=[代码][代码]"click"[代码] [代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"page-body-form"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"page-body-form-item"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]text[代码] [代码]class[代码][代码]=[代码][代码]"page-body-form-key"[代码][代码]>热线电话</[代码][代码]text[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]input[代码] [代码]class[代码][代码]=[代码][代码]"page-body-form-value"[代码] [代码]type[代码][代码]=[代码][代码]"text"[代码] [代码]value[代码][代码]=[代码][代码]"0871-68211888"[代码] [代码]name[代码][代码]=[代码][代码]"tel"[代码][代码]></[代码][代码]input[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"page-body-form-item"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]text[代码] [代码]class[代码][代码]=[代码][代码]"page-body-form-key"[代码][代码]>地铁线</[代码][代码]text[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]input[代码] [代码]class[代码][代码]=[代码][代码]"page-body-form-value"[代码] [代码]type[代码][代码]=[代码][代码]"text"[代码] [代码]value[代码][代码]=[代码][代码]"地铁3号线-西山公园站下"[代码] [代码]name[代码][代码]=[代码][代码]"address"[代码][代码]></[代码][代码]input[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"page-body-form-item"[代码] [代码]style[代码][代码]=[代码][代码]"border-bottom: none;"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]text[代码] [代码]class[代码][代码]=[代码][代码]"page-body-form-key"[代码][代码]>详细位置</[代码][代码]text[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]input[代码] [代码]class[代码][代码]=[代码][代码]"page-body-form-value"[代码] [代码]type[代码][代码]=[代码][代码]"text"[代码] [代码]value[代码][代码]=[代码][代码]"昆明市西山区碧鸡关碧源路6号"[代码] [代码]name[代码][代码]=[代码][代码]"address"[代码][代码]></[代码][代码]input[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"page-body-buttons"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]button[代码] [代码]class[代码][代码]=[代码][代码]"page-body-button"[代码] [代码]type[代码][代码]=[代码][代码]"primary"[代码][代码]>点此导航到学校</[代码][代码]button[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码]JS: [代码]Page({[代码][代码] [代码][代码]data: {[代码][代码] [代码][代码]scale: 13,[代码][代码] [代码][代码]latitude: 24.987896,[代码][代码] [代码][代码]longitude: 102.617047,[代码][代码] [代码][代码]markers: [{[代码][代码] [代码][代码]id: [代码][代码]"1"[代码][代码],[代码][代码] [代码][代码]latitude: 24.987687,[代码][代码] [代码][代码]longitude: 102.617047,[代码][代码] [代码][代码]width: 28,[代码][代码] [代码][代码]height: 47,[代码][代码] [代码][代码]title: [代码][代码]"云南新华电脑学院"[代码][代码],[代码][代码] [代码][代码]iconPath: [代码][代码]"../image/location.png"[代码][代码] [代码][代码]}],[代码][代码] [代码][代码]},[代码][代码] [代码][代码]onLoad: [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]wx.openLocation({[代码][代码] [代码][代码]latitude: 24.988032,[代码][代码] [代码][代码]longitude: 102.616618,[代码][代码] [代码][代码]scale: 18,[代码][代码] [代码][代码]name: [代码][代码]'云南新华电脑学院'[代码][代码],[代码][代码] [代码][代码]address: [代码][代码]'地址:云南省昆明市西山区碧鸡关 电话:0871-68211888'[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码] [代码][代码]click: [代码][代码]function[代码] [代码](e) {[代码][代码] [代码][代码]wx.openLocation({[代码][代码] [代码][代码]latitude: 24.986670,[代码][代码] [代码][代码]longitude: 102.616810,[代码][代码] [代码][代码]scale: 18,[代码][代码] [代码][代码]name: [代码][代码]'云南新华电脑学院'[代码][代码],[代码][代码] [代码][代码]address: [代码][代码]'地址:云南省昆明市西山区碧鸡关 电话:0871-68211888'[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码] [代码][代码]onShareAppMessage: [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]return[代码] [代码]{[代码][代码] [代码][代码]title: [代码][代码]'查看到云南新华电脑学院的导航路线'[代码][代码],[代码][代码] [代码][代码]path: [代码][代码]'/pages/map/map'[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码]})[代码]
2018-05-25