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

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

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.9.0
    • None
    • cordova-plugin-camera
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment