Dhaval2404 / ImagePicker

📸Image Picker for Android, Pick an image from Gallery or Capture a new image with Camera

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamically choose crop ratio

Dor-Sloim opened this issue · comments

Is there an option to let your users choose crop ratio dynamically?
If not, could you add one using the https://github.com/Yalantis/uCrop library?

@Dor-Sloim Sorry, I didn't get your exact requirement. uCrop is already added in this lib. Currently, you can pass crop ration as below:

ImagePicker.with(this)
	.crop(16f, 9f)	//Crop image with 16:9 aspect ratio
	.start()

Here, the crop method is optional.

I want to be able to do:
ImagePicker.with(this) .**crop()** .start()
Then, when the user crops, he can change the aspect ratio.

@Dor-Sloim I will try to integrate the feature in the next few hours.

Thank you so much for the feedback.

Thank you so much !
This might help you:

If you want to let your users choose crop ratio dynamically, just do not call withAspectRatio(x, y).

Great.
When do you think you will release

implementation 'com.github.dhaval2404:imagepicker:1.5'

I'l be more than happy to test it and let you know if i find any bugs.
And again, Thank you so much !

@Dor-Sloim Can you please check out the latest lib.