title: Ionic Native Camera targetWidth not working
body: <p>I am using Ionic3 with the <a href="https://ionicframework.com/docs/native/camera/" rel="nofollow noreferrer">ionic-native camera</a> plugin.</p>
  
  <p>I have the following:</p>
  
  <p><strong>ts</strong></p>
  
  <pre><code>    let height: number = 720;
      let width: number = 1440;
      let options = {
          sourceType: pictureSourceType,
          destinationType: Camera.DestinationType.FILE_URI,
          quality: 50,
          targetWidth: width,
          targetHeight: height,
          correctOrientation: true,
          encodingType: Camera.EncodingType.JPEG,
          allowEdit: false
      }
      if (pictureSourceType === Camera.PictureSourceType.SAVEDPHOTOALBUM) {
          options.correctOrientation = false;
          options.allowEdit = true;
      }
      Camera.getPicture(options).then((imageURI) =&gt; {
          if (this.platform.is('ios')) {
              Crop.crop(imageURI, { quality: 100 }).then(newPath =&gt; {
                  return this.toBase64(newPath).then((base64Img) =&gt; {
                      this.base64Image = base64Img;
                  }).catch((error) =&gt; {
                      console.error("ERROR -&gt; " + JSON.stringify(error));
                      alert("ERROR: " + JSON.stringify(error));
                  });
              });
          } else if (this.platform.is('android')) {
              imageURI = 'file://' + imageURI;
              Crop.crop(imageURI, { quality: 100 }).then(newPath =&gt; {
                  return this.toBase64(newPath).then((base64Img) =&gt; {
                      this.base64Image = base64Img;
                  }).catch((error) =&gt; {
                      console.error("ERROR -&gt; " + JSON.stringify(error));
                      alert("ERROR: " + JSON.stringify(error));
                  });
              });
          }
      }, (error) =&gt; {
          console.error("CAMERA ERROR -&gt; " + JSON.stringify(error));
          // alert("CAMERA ERROR: " + JSON.stringify(error));
      }
      ).catch((error) =&gt; {
          console.error("ERROR getPicture -&gt; " + JSON.stringify(error));
          alert("ERROR getPicture: " + JSON.stringify(error));
      });
  </code></pre>
  
  <p>As you can see above, the height is set to <code>720</code> and the width to <code>1440</code>. However, when I take a photo, the aspect ratio is square, i.e. it is the same height as width.</p>
  
  <p>I think the issue may be related to the <a href="https://ionicframework.com/docs/native/crop/" rel="nofollow noreferrer"><code>Crop</code></a>.</p>
  
  <p>Please can anyone advise how to set the aspect ratio?</p>
  
  <p>Thanks</p>