function sendImagefromCanvas() {
	//Make sure the canvas is set to the current video size
	imageCanvas.width = v.videoWidth;
	imageCanvas.height = v.videoHeight;
	imageCtx.drawImage(v, 0, 0, v.videoWidth, v.videoHeight);
	//Convert the canvas to blob and post the file
	imageCanvas.toBlob(postFile, 'image/jpeg');
}
//Get the image from the canvas
Get the image from the canvas
Get the image from the canvas
function sendImagefromCanvas() {
	imageCanvas.width = v.videoWidth;
	imageCanvas.height = v.videoHeight;
	imageCtx.drawImage(v, 0, 0, v.videoWidth, v.videoHeight);
	imageCanvas.toBlob(postFile, 'image/jpeg');
}
function sendImagefromCanvas ( ) { imageCanvas . width = v . videoWidth ; imageCanvas . height = v . videoHeight ; imageCtx . drawImage ( v , 0 , 0 , v . videoWidth , v . videoHeight ) ; imageCanvas . toBlob ( postFile , 'image/jpeg' ) ; }
Get the image from the canvas
Get the image from the canvas
//Make sure the canvas is set to the current video size //Convert the canvas to blob and post the file