locked
Camera portrait taken picture turns to landscape in iOS webview RRS feed

  • Question

  • User385718 posted

    I have a iOS webview and when you click on a speficic button you can take a picture with the camera.

    You can take the picture and when the picture is taken it still is in portrait orientation.

    But when I save the picture, the picture goes in landscape mode.

    How can I lock the picture into portrait mode?

    Here is my AppDelegate:

    I hope anyone can help me solve this problem

    Friday, December 20, 2019 1:36 PM

Answers

  • User369979 posted

    This could happen if you open these images on your server. The pictures token on iOS will have EXIF information. The orientation of the image is stored there but different OS may not recognize this information so the orientation on different OS may have strange behavior. I think the appropriate approach is to read the EXIF and correct the orientation manually.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Monday, December 23, 2019 8:12 AM