Fix image cropping and submission for photo ID verify.
Using the available video resolution increasing the image and request size and server started failing requests. Fixed it by using canvas width and height. PROD-499
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