cordova-plugin-crop
cordova-plugin-crop copied to clipboard
Make cropper frame resizable
Hi, thank you for the great plugin. I am using it to crop images to squares in my app, and I've noticed that user can change the cropper frame from default square to a rectangular. It would be nice to prevent user from being able to do that. It would be very useful if I could specify the width and height of a destination image and have cropper honor this aspect ratio.
is that on Android?
Yep, Android. No way to change ratio of cropping. Under Android this is always square. Is it possible? to add some options for plugin, to make possibility to control it.
ops. Last version has fixed square ratio for IOS (( let's add some option to control this, always use square is not good.
added modified version with "keepingAspectRatio" option https://www.npmjs.com/package/cordova-plugin-crop-mod
@oleksiy-nesterov why not sending a PR? just curious
I thought, you do not support this plugin, because all my previous messages without answers/suggestions. Will do PR.
You can become a maintainer if you're inclined.
@oleksiy-nesterov does not work when the source type is PHOTOLIBRARY;
+1