Actualizacion con cambios de miguel

parent 85d8f100
......@@ -95,7 +95,7 @@
if (width && height) {
canvas.width = calculatedRatio.width;
canvas.height = calculatedRatio.height;
context.drawImage(video, 0, 0);
context.drawImage(video, 0, 0, width, height);
var data = canvas.toDataURL('image/png');
photo.setAttribute('src', data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment