title: cordova-plugin-crop error on cropping 404
body: <p>I am using Ionic 2 and <a href="https://github.com/jeduan/cordova-plugin-crop" rel="nofollow noreferrer">cordova-plugin-crop</a> to crop an image.</p>
  
  <p>If I <strong>take a photo</strong> (<code>pictureSourceType === navigator.camera.PictureSourceType.CAMERA</code>), the cropping works fine, but if I <strong>pick an image from a folder</strong> (<code>pictureSourceType === navigator.camera.PictureSourceType.SAVEDPHOTOALBUM</code>), and try crop it, I get:</p>
  
  <blockquote>
    <p>error on cropping 404</p>
  </blockquote>
  
  <p>Here is my code:</p>
  
  <pre><code>takeThePhoto(pictureSourceType: any) {
      let options = {
          sourceType: pictureSourceType,
          destinationType: Camera.DestinationType.FILE_URI,
          quality: 50,
          targetWidth: 720,
          correctOrientation: true,
          encodingType: Camera.EncodingType.JPEG
      }
      if (pictureSourceType === navigator.camera.PictureSourceType.SAVEDPHOTOALBUM) {
          options.correctOrientation = false;
      }
      Camera.getPicture(options).then((imageURI) =&gt; {
          window['plugins'].crop.promise(imageURI, {
              quality: 75
          }).then(newPath =&gt; {
              alert('newPath = ' + newPath);
              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("CROP ERROR -&gt; " + JSON.stringify(error));
                  alert("CROP ERROR: " + JSON.stringify(error));
              }
              ).catch((error) =&gt; {
                  console.error("ERROR imageURI -&gt; " + JSON.stringify(error));
                  alert("ERROR imageURI: " + 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>Any help is appreciated.</p>