Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c3d923f

Browse files
authored
Merge pull request openedx#21235 from edx/waheed/PROD-499-fix-image-croping-and-upload
Fix image cropping and submission for photo ID verify.
2 parents 0e8f5a9 + 557213a commit c3d923f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lms/static/js/verify_student/views/webcam_photo_view.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@
5555
if (this.stream) {
5656
video = this.getVideo();
5757
canvas = this.getCanvas();
58-
canvas.width = video.videoWidth;
59-
canvas.height = video.videoHeight;
60-
canvas.getContext('2d').drawImage(video, 0, 0);
58+
canvas.getContext('2d').drawImage(video, 0, 0, canvas.width, canvas.height);
6159
video.pause();
6260
return true;
6361
}

0 commit comments

Comments
 (0)