Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-76438

Picture taken with Camera has wrong orientation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 6.2.0 RC
    • 5.12.2
    • Multimedia, Quick: Other
    • None
    • Android arm7
    • Android

    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. 

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            valentyn.doroshchuk Valentyn Doroshchuk
            tezine Bruno Tezine
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes