Re: [mediacapture-main] ResizeMode (crop-and-scale) is underspecified (#584)

Chrome uses the largest centered rectangle with the same aspect ratio of the original frame that fits entirely inside of the target resolution.
So, basically, first downscale the original (as little as possible) while maintaining the aspect ratio until the target width or height is matched, and then crop to match the other dimension if necessary.

-- 
GitHub Notification of comment by guidou
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/584#issuecomment-489044689 using your GitHub account

Received on Friday, 3 May 2019 10:08:36 UTC