title: Camera Functionality of iPhone 5 in PhoneGap, image squashed
body: <p>So I had an ios app, pre ios6/iPhone5. It worked well. I am currently in the process of trying to fix it for iPhone5 and ios6. Was going well, and I have ironed out 99% of the bugs for ios6 and it seems to work. iPhone 5 however is being temperamental.</p>
  
  <p>I am using PhoneGap 1.8.1.  At one point I take an image with the camera, using this function:</p>
  
  <pre><code>function capturePhoto() {
  
          networkState = navigator.network.connection.type; 
  
              if (networkState == Connection.NONE)
                  {
                    alert('You must be connected to the internet to use this feature!');
  
                  }else{
  
  
                  var options = {
                      quality: 100,
                      correctOrientation: false,
                      destinationType : navigator.camera.DestinationType.FILE_URI,
                      sourceType: navigator.camera.PictureSourceType.CAMERA,
                      encodingType: navigator.camera.EncodingType.JPEG,
                }
            navigator.camera.getPicture(onPhotoDataSuccess, onFail, options);
  
      }
  }
  </code></pre>
  
  <p>I then display the image as a background on a HTML canvas. Using kineticJS but for the purposes of this problem I would think all you need to know is:</p>
  
  <pre><code>var canvaswidth = window.innerWidth;
  var canvasheight = window.innerHeight;
  
  var darthVaderImg = new Kinetic.Image({
                                            x: 0,
                                            y: 0,
                                            image: images.darthVader,
                                            width: canvaswidth,
                                            height: canvasheight,
                                            name: "image"
                                            });
  </code></pre>
  
  <p>This running on iphone 4s ios 6 works fine, this on android works fine... but on iPhone 5 it does not. The picture is the correct orientation, but it gets squashed up in the top, I tried hard-coding it to the screen size of the iPhone 5.... which I believe is 640x1136?</p>
  
  <p>Still no luck, if I exaggerate and set the image height to 2000 for example, it does cover the screen, but is zoomed in. I am abit lost as to what is happening.... anyone had a similar problem, or any ideas?</p>