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

Camera feature doesn't work if quality greater than 50

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-plugin-camera
    • Labels:
    • Environment:

      Android,IOS

    • Flags:
      Important

      Description

      Http Post request fails if Camera image passed as a Data URI which is captured by cordova image capture plugin.

      $http({url:ServerURL+'/pgas-bbmp-portlet/requestprocess.do' , 
      method: "POST",
      params: {
      	userId:$rootScope.user!=undefined?$rootScope.user.userid:0,
      	imageData:$rootScope.limgData
      }
      })
      .then(function(response) {
      	console.log(response.data);
      	console.log(response.status);
      }
      ,function(response) {
      	console.log(response.data);
      	console.log(response.status);
      });
      
      where $rootScope.limgData is imageData got from Success fn of navigator.camera.getPicture()
      
      
      Camera Options:
      var options = {
                    quality:100,
                    destinationType: Camera.DestinationType.DATA_URL,
                    sourceType: Camera.PictureSourceType.CAMERA,
                    allowEdit: false,
                    encodingType: Camera.EncodingType.JPEG,
                    targetWidth: 200,
                    targetHeight: 200,
                    popoverOptions: CameraPopoverOptions,
                    saveToPhotoAlbum: false,
                    correctOrientation:true
                  };
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              joshi3432 Viththal Joshi
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: