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

The correctOrientation method is not being called when the sourceType as PHOTOLIBRARY, the mediaType is ALLMEDIA and the selected file is an image (Only for Android devices)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.0, 2.0.0, 2.1.0
    • None
    • cordova-plugin-camera
    • Developing on MAC, android devices used: Xperia Z3, Dell venue7

    • Important

    Description

      The correctOrientation function is used to fix the orientation of a photo, if this method is not called and you take a picture in portrait mode, the picture is going to be shown with a wrong orientation. To activate this feature we should send the correctOrientation param as true. The issue is that the current android code is only calling the correctOrientation method in these cases:

      • When you pass the correctOrientation param as true and the sourceType as CAMERA.
      • When you pass the correctOrientation param as true, the sourceType as PHOTOLIBRARY or SAVEDPHOTOALBUM and the media type as PICTURE.

      I think we should include this case:

      • You pass the correctOrientation param as true, the sourceType as PHOTOLIBRARY or SAVEDPHOTOALBUM, the media type as ALLMEDIA and the selected file is a picture.

      Also I want to add that I was able to reproduce the issue CB-9012, that issue and this one are a little related so I think we can create a fix for both issues.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              horozco15 Hernan Orozco
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 24h
                  24h
                  Remaining:
                  Remaining Estimate - 24h
                  24h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified