title: App crashed when cropping is saved and crop size is equal or greater than initial size using code by markuspalme
body: <p>First, I want to credit the owner for his simplified work of flexible cropping.
  <a href="https://github.com/markuspalme/cropimage-xamarin" rel="nofollow noreferrer">https://github.com/markuspalme/cropimage-xamarin</a>.<br>
  Original project found here<br>
  <a href="https://github.com/MMP-forTour/cropimage" rel="nofollow noreferrer">https://github.com/MMP-forTour/cropimage</a></p>
  
  <p>My goal is to crop a photo so I can choose where and what part I really want to have. I tried using the method of intent. <strong><code>Intent cropIntent = new Intent ("com.android.camera.action.CROP");</code></strong>. But since it is not for all device, I have to look for other solution.</p>
  
  <p>The algorithm from <a href="https://github.com/markuspalme/cropimage-xamarin" rel="nofollow noreferrer">https://github.com/markuspalme/cropimage-xamarin</a> is perfectly working when the crop size is smaller than the initial size. See image below (this is from their site).</p>
  
  <p><a href="https://i.stack.imgur.com/yaSSI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yaSSI.png" alt="Crop sample with initial size"></a></p>
  
  <p>The problem is, when crop size is equal or greater than the initial size it crashes the app. My guess is that it is too much for bundle extras to hold.</p>
  
  <p>Here is the code where it is crashing.  </p>
  
  <pre><code>Bundle extras = new Bundle();
  extras.PutParcelable("data", croppedImage);
  SetResult(Result.Ok,
      (new Intent()).SetAction("inline-data").PutExtras(extras));
  Finish();
  </code></pre>
  
  <p>Here is the snippet of crashing croppedImage data.
  <a href="https://i.stack.imgur.com/T7mUP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T7mUP.png" alt="Crashing Image Data"></a></p>
  
  <p>Here is the snippet of prefectly working croppedImage data.
  <a href="https://i.stack.imgur.com/O9yXb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O9yXb.png" alt="enter image description here"></a></p>
  
  <p>I don't know what is something that Bundle Extras can't handle. Please help me with this. Thanks</p>