Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-4078

correctOrientation is not working on camera.getPicture for PHOTOLIBRARY (works with Camera)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.0
    • Fix Version/s: None
    • Component/s: cordova-plugin-camera
    • Labels:
    • Environment:

      Android

      Description

      Hi

      I use cameraOptions below to get the FILE_URI and to display in <img> tag:

            correctOrientation: true
            quality: 50
            encodingType: Camera.EncodingType.JPEG
            targetWidth: 300
            targetHeight: 300
            destinationType: window.navigator.camera.DestinationType.FILE_URI
            sourceType: window.navigator.camera.PictureSourceType.PHOTOLIBRARY
      

      But the picture displayed within wrong orientation.

      Updated:
      I try use window.navigator.camera.PictureSourceType.CAMERA in sourceType, and everything work as expected.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              aligo aligo
            • Votes:
              4 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: