title: How can I make PhoneGap Camera images with target width and height bigger than 640px of high quality?
body: <p>I use Cordova 3.5.0 and the latests version of the <a href="https://github.com/apache/cordova-plugin-camera" rel="nofollow noreferrer">Camera plugin</a>. I figured out that the image quality drops when I set the targetWidth and targetHeight above 640. Here is the configuration I use:</p>
  
  <pre><code>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 
  });
  </code></pre>
  
  <p>I did several tests capturing photos with the phonegap camera and compared the images that were automatically saved to album.</p>
  
  <p><a href="https://dl.dropboxusercontent.com/u/47067729/Foto%2020.11.14%2016%2015%2028%20640.jpg" rel="nofollow noreferrer">Here is the result (targetWidth: 640, targetHeight: 640)</a>:</p>
  
  <p><img src="https://i.stack.imgur.com/BIXet.jpg" alt="enter image description here"></p>
  
  <p><a href="https://dl.dropboxusercontent.com/u/47067729/Foto%2020.11.14%2016%2017%2032%20800.jpg" rel="nofollow noreferrer">Here is the result (targetWidth: 800, targetHeight: 800)</a>:</p>
  
  <p><img src="https://i.stack.imgur.com/RRFDd.jpg" alt="enter image description here"></p>
  
  <p><a href="https://dl.dropboxusercontent.com/u/47067729/Foto%2020.11.14%2016%2018%2045%201280.jpg" rel="nofollow noreferrer">Here is the result (targetWidth: 1280, targetHeight: 1280)</a>:</p>
  
  <p><img src="https://i.stack.imgur.com/xK06g.jpg" alt="enter image description here"></p>
  
  <p>When you click on the links and compare the photos you see that the quality gets worse the bigger the image is. </p>
  
  <p><strong>How can I make PhoneGap Camera images with target width and height bigger than 640px of high quality?</strong></p>