Actualizacion con cambios de miguel

parent 1ada7ddb
...@@ -93,8 +93,8 @@ ...@@ -93,8 +93,8 @@
var context = canvas.getContext('2d'); var context = canvas.getContext('2d');
var calculatedRatio = calculateAspectRatioFit(width, height, 600, 400); var calculatedRatio = calculateAspectRatioFit(width, height, 600, 400);
if (width && height) { if (width && height) {
canvas.width = calculatedRatio.width; canvas.width = width;
canvas.height = calculatedRatio.height; canvas.height = height;
context.drawImage(video, 0, 0, width, height); context.drawImage(video, 0, 0, width, height);
var data = canvas.toDataURL('image/png'); var data = canvas.toDataURL('image/png');
......
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