-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Freestyle" cropping does not maintain aspect ratio #135
Comments
That is what freestyle cropping should do - it lets user to set any aspect ratio :) Therefore it's useless to combine this feature with pre-set aspect ratio. |
Not really — even if the freestyle cropping is enabled (which means user can drag the crop rectangle instead of moving the image), aspect ratio can still be maintained. See another library's demo gif: https://raw.githubusercontent.com/ArthurHub/Android-Image-Cropper/master/art/demo.gif |
Oh, that's great 👍 |
Is it ok if I fork and make changes on 1.5.0? I do really like 1.5.0 more
On Tue, Jun 28, 2016 at 4:28 PM, Oleksii [email protected] wrote:
|
I don't see anything wrong with the native libraries... however if you check the code, you may notice that I try to resolve a file path from content:// uris (and it still works for a large amount of cases), but if it fails - I use content:// uri directly via InputStream. I got the image file one way or another. |
Native lib is subjective. I just don't want to make the APK bigger. However, reading the file from content:// uri will fail if the app does not have the permission |
The sample handles permission and works well on any platform. I don't think uCrop should handle permissions for you. |
The sample requires read external storage permission even before the crop operation starts. It is not actually needed to select a photo using another app. |
@yukuku Agreed with the permissions. I started using uCrop 2.1.1 and I believe it's the best cropping library out there, however that permission thing struck me, as the permission isn't necessary when directly loading the passed in Uri. |
outdated |
I'm using version 1.5.0 (because I don't want the native libraries)
When I enable the freestyle cropping, it seems to ignore the aspect ratio I set (1:1).
The text was updated successfully, but these errors were encountered: