CameraContext.takePhoto(Object object)
发布于 6 年前 作者 yang44 17904 次浏览 来自 问答

使用ios系统调用拍照api,CameraContext.takePhoto(Object object)中__object.quality__

设置为low和high拍出来的照片是一样的。并没有压缩。(安卓手机上正常)

2 回复

请提供出现问题的机型和微信版本,以及能复现问题的简单代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

takePhoto() {

const ctx = wx.createCameraContext()

ctx.takePhoto({

quality: ‘low’,

success: (res) => {

this.setData({

src: res.tempImagePath,

camera: false,

})

}

})

}

机型:Iphone7 plus ,微信版本:6.7.2

质量选high拍出来照片2M左右,选low也还剩800K,不能再小点么?

回到顶部