mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
优化摄像头拍照图片格式
This commit is contained in:
parent
4abec1f69c
commit
61433a7222
@ -325,7 +325,7 @@
|
||||
canvas.width = takeAddVideo.videoWidth;
|
||||
canvas.height = takeAddVideo.videoHeight;
|
||||
canvas.getContext('2d').drawImage(takeAddVideo, 0, 0);
|
||||
var data = canvas.toDataURL('image/webp');
|
||||
var data = canvas.toDataURL('image/jpeg',1.0);
|
||||
vc.component.addApplicationKeyInfo.photo = data;
|
||||
//document.getElementById('photo').setAttribute('src', data);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user