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

Update documentation regarding browser quirks

    XMLWordPrintableJSON

Details

    Description

      According to the README, the only Browser Quirk is:

      Can only return photos as Base64-encoded image.

      However this is not the case from my testing. Instead, I get this result:

      blob:http://localhost:8000/259e6e9e-bb2f-47d0-939d-51461bd7d47c
      

      Also, the image is not resized, it's returned in its natural size.

      This is the options object used:

      var options = {
        quality: 100,
        destinationType: Camera.DestinationType.FILE_URI,
        sourceType: Camera.PictureSourceType.SAVEDPHOTOALBUM,
        encodingType: Camera.EncodingType.JPEG,
        mediaType: Camera.MediaType.PICTURE,
        allowEdit: true,
        correctOrientation: true,
        targetHeight: 240,
        targetWidth: 240
      }
      

      Using Camera.DestinationType.DATA_URI does return a base64 encoded image but it does not resize it either, it returns in its original size.

      Attachments

        Activity

          People

            Unassigned Unassigned
            andreszs Andres Zsogon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: