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

Photo quality is very low when target width and height is above 640px

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.5.0
    • None
    • cordova-plugin-camera
    • iOS Cordova 3.5 iPhone 5

    Description

      I use Cordova 3.5.0 and the latests version of the Camera plugin. I figured out that the image quality drops when I set the targetWidth and targetHeight above 640. Here is the configuration I use:

      navigator.camera.getPicture(onSuccess, onFail, 
        { quality : 100,
        destinationType : Camera.DestinationType.FILE_URI,
        sourceType : Camera.PictureSourceType.CAMERA,
        allowEdit : true,
        encodingType: Camera.EncodingType.JPEG,
        targetWidth: 640,
        targetHeight: 640,
        saveToPhotoAlbum: true 
      });
      

      I did several tests capturing photos with the phonegap camera and compared the images that were automatically saved to album.

      How can I make PhoneGap Camera images with target width and height bigger than 640px of high quality?

      I posted my sample results on stackoverflow:

      http://stackoverflow.com/questions/27043534/how-can-i-make-phonegap-camera-images-with-target-width-and-height-bigger-than-6

      Attachments

        Activity

          People

            Unassigned Unassigned
            confile Michael M
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: