W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > May 2019

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

From: guidou via GitHub <sysbot+gh@w3.org>
Date: Fri, 03 May 2019 10:08:35 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-489044689-1556878114-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:47 UTC