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

When using allowEdit on iOS, user is unable to Crop, Zoom on Image

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Not A Problem
    • 2.2.0
    • None
    • cordova-ios
    • iOS 6.x (iPhone 5)

    Description

      When using the following code, the user is unable to "crop" the photo on the edit screen. Once you attempt to zoom, it snaps back to the original version.

              var success = function(imageURI) {
                  alert('image url: ' + imageURI);
              }
      
              var fail = function(message) {
                  alert('error: ' + message);
              }
                  
              var pictureSource=navigator.camera.PictureSourceType;
              var destinationType=navigator.camera.DestinationType;
              var encoding=navigator.camera.EncodingType;
      
              navigator.camera.getPicture(success, fail,
                                          {quality: 45, destinationType: destinationType.FILE_URI, sourceType: pictureSource.CAMERA, correctOrientation: true, encodingType: encoding.JPEG, saveToPhotoAlbum: true, targetWidth: 910, targetHeight: 910, allowEdit: true}
                                          );
      

      You can verify this on iPhone 5 (I believe it works well on previous models) on iOS 6+.

      Attachments

        Activity

          People

            shazron Shazron Abdullah
            gregavola Greg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: