Merge pull request #21235 from edx/waheed/PROD-499-fix-image-croping-and-upload

Fix image cropping and submission for photo ID verify.
This commit is contained in:
Waheed Ahmed
2019-07-29 18:17:37 +05:00
committed by GitHub

View File

@@ -55,9 +55,7 @@
if (this.stream) {
video = this.getVideo();
canvas = this.getCanvas();
canvas.width = video.videoWidth;
canvas.height = video.videoHeight;
canvas.getContext('2d').drawImage(video, 0, 0);
canvas.getContext('2d').drawImage(video, 0, 0, canvas.width, canvas.height);
video.pause();
return true;
}