foscam_streamer icon indicating copy to clipboard operation
foscam_streamer copied to clipboard

How to change the display size of the image

Open fabioharry opened this issue 6 years ago • 1 comments

Hello,

I would like to know how to change the display size of the image without having to change it in ffmpeg?

Is it possible?

Thank you for your project!

fabioharry avatar Jul 28 '18 14:07 fabioharry

Try this JavaScript:

height = window.innerHeight;

canvas = document.getElementById('myCanvas'), 
ratio = canvas.width / canvas.height;
width = height * ratio;
canvas.style.width = width + 'px';
canvas.style.height = height + 'px';

BradRoot avatar Feb 14 '19 07:02 BradRoot