Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.12.2
-
None
-
Android arm7
Description
Picture taken using the front camera has a different orientation depending on the Android device which takes the picture.
I could already countour the VideoOutput preview using OrientationSensor, but the problem remains with the saved file.
Whenever I try to take a picture using my Xiaomi Pocophone F1, the saved file has a wrong orientation (the image is rotated 90 degrees to the right). If I take the same picture using a Moto Maxx, the file has the correct oriention, but camera.orientation also indicates 90. So here is the big problem: Since camera.orientation in both devices indicate 90, but the saved file on Xiaomi has a wrong orientation, I tried to rotate -90 whenever the camera.orientation indicates 90, but if I do this, Moto Maxx saves with a wrong orientation.
I'm using AndroiManifest locked into portrait.
Any ideas how to fix this on all devices? This is not a Pocophone only issue. My friends phone had the same problem.
Thanks.