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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user