图片选择png格式问题
机型:IOS
透明背景的png图片选择后,会把透明背景改成白色,可能是改为jpg格式了
安卓还是透明背景
3 回复
wx.chooseImage({ count: 9, sizeType: [ 'original' , 'compressed' ], sourceType: [ 'album' , 'camera' ], success: (res) => { var tempFilePaths = res.tempFilePaths; this .setData({ imgList: tempFilePaths }) } }) |
< block wx:key wx:for = "{{imgList}}" wx:for-index = "index" > < view class = "picWrapper" bindtap = "handleGoToImgDetail" data-index = "{{index}}" > < image class = "pic" src = "{{imgList[index]}}" /> </ view > </ block > |
就是普通的选择图片Api