CameraKit / camerakit-android

Library for Android Camera 1 and 2 APIs. Massively increase stability and reliability of photo and video capture on all Android devices.
https://camerakit.io
MIT License
5.36k stars 878 forks source link

Camera preview stretched on Android 10 (Android Q) #564

Open steurt opened 5 years ago

steurt commented 5 years ago

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

CameraKit Version: v0.13.2, v0.13.5

Android Device: Google Pixel 1

Android Version: Android 10 (Android Q) - Beta 6

Steps to Reproduce

  1. Start an app that makes use of camera kit on Android 10 (e.g. the CameraKit Demo: https://play.google.com/store/apps/details?id=com.wonderkiln.camerakit.demo).
  2. The aspect ratio of the camera preview is incorrect, it is stretched. This was working fine on Android Pie (Android 9).

Expected Behavior

Expect the camera preview to be the correct camera aspect ratio.

Actual Behavior

The camera preview is stretched. I drew a square on a post-it. I took a screenshot of the native camera app's camera preview and of the CameraKit Demo app's camera preview. The difference in aspect ratio is clear. See screenshots:

Native camera app vs CameraKit Demo app

Screenshot_20190828-132041Screenshot_20190828-132048