From 5401406ca450c6910588a40406ac79e5aedcaddc Mon Sep 17 00:00:00 2001 From: MarcZierle Date: Tue, 25 Jan 2022 14:10:56 +0100 Subject: [PATCH] fix capture camera image --- src/views/CameraCapture.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/CameraCapture.vue b/src/views/CameraCapture.vue index 5c013dc..b85a811 100644 --- a/src/views/CameraCapture.vue +++ b/src/views/CameraCapture.vue @@ -227,8 +227,8 @@ export default { this.photo.width = document.getElementById('camera_preview').offsetWidth this.photo.height = document.getElementById('camera_preview').offsetHeight - this.$refs.camera.width = this.photo.width - this.$refs.camera.height = this.photo.height + this.$refs.camera.width = this.stream.width + this.$refs.camera.height = this.stream.height }).catch(error => { this.message.error('Cannot load device camera! '+error) })