Yalantis / uCrop

Image Cropping Library for Android
https://yalantis.com/blog/introducing-ucrop-our-own-image-cropping-library-for-android/
11.88k stars 2.16k forks source link

Is it possible to crop the image without maintaining a fixed aspect ratio? #801

Closed Mohaymin closed 2 years ago

Mohaymin commented 2 years ago

I am trying to allow users crop their image without maintaining any aspect ratio in my android application.

It should look something like this:

demo

How can I achieve this goal using this library?

thomaspoulainconsulting commented 2 years ago

I am also interested in this feature !

dmitriy1morozov commented 2 years ago

Hello, @Mohaymin . You may use one of the public methods in OverlayView.java to enable freestyle crop and freely drag corners without a fixed aspect ratio. Please check the following method: public void setFreestyleCropEnabled(boolean freestyleCropEnabled) {

Check the following screencast from the sample app. Is that what you were looking for? FreeStyleCrop

Mohaymin commented 2 years ago

@dmitriy1morozov yes! thanks for your response.