title: How to crop an image to a certain aspect ratio with Cordova/Ionic?
body: <p>When an image is cropped on mobile, normally, a user is able to adjust the size of the cropped image by dragging the "viewport" around.</p>
  
  <p>I'd like to let the user resize the crop window, but only if the aspect ratio is locked: the resulting image will be stretched to fit said ratio when it is displayed.</p>
  
  <p>Is there a way to do this with core Ionic or third party libraries or this something I will have to rely on ImageMagik for server-side?</p>
  
  <p>For the visual learners:</p>
  
  <p><a href="https://i.stack.imgur.com/NOk8U.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NOk8U.jpg" alt="enter image description here"></a></p>