cordova-plugin-crop icon indicating copy to clipboard operation
cordova-plugin-crop copied to clipboard

Make cropper frame resizable

Open ilyastam opened this issue 9 years ago • 9 comments

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.

ilyastam avatar Jan 30 '16 22:01 ilyastam

is that on Android?

jeduan avatar Feb 04 '16 19:02 jeduan

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.

oleksiy-nesterov avatar Nov 15 '16 14:11 oleksiy-nesterov

ops. Last version has fixed square ratio for IOS (( let's add some option to control this, always use square is not good.

oleksiy-nesterov avatar Mar 02 '17 10:03 oleksiy-nesterov

added modified version with "keepingAspectRatio" option https://www.npmjs.com/package/cordova-plugin-crop-mod

oleksiy-nesterov avatar Mar 02 '17 16:03 oleksiy-nesterov

@oleksiy-nesterov why not sending a PR? just curious

jeduan avatar Mar 02 '17 18:03 jeduan

I thought, you do not support this plugin, because all my previous messages without answers/suggestions. Will do PR.

oleksiy-nesterov avatar Mar 03 '17 10:03 oleksiy-nesterov

You can become a maintainer if you're inclined.

jeduan avatar Mar 03 '17 14:03 jeduan

@oleksiy-nesterov does not work when the source type is PHOTOLIBRARY;

rajnandan1 avatar Mar 30 '17 16:03 rajnandan1

+1

ahmadramadan avatar Jun 17 '17 00:06 ahmadramadan