This library looks great. Thanks for putting it together and sharing it.
I'm currently using ArthurHub/Android-Image-Cropper and want to switch over to Ananas. However, my app allows users to select an image from the gallery and passes the Uri to Cropper. An example Uri is:
I spent some time trying to get a filepath from a Uri but various stackoverflow posts like this one convinced me its a bit of a mess and its easier to get a bitmap from a Uri than a filepath.
This library looks great. Thanks for putting it together and sharing it.
I'm currently using ArthurHub/Android-Image-Cropper and want to switch over to Ananas. However, my app allows users to select an image from the gallery and passes the Uri to Cropper. An example Uri is:
content://com.android.providers.downloads.documents/document/4674
I spent some time trying to get a filepath from a Uri but various stackoverflow posts like this one convinced me its a bit of a mess and its easier to get a bitmap from a Uri than a filepath.
https://stackoverflow.com/questions/3401579/get-filename-and-path-from-uri-from-mediastore
This pull request reuses the code from ArthurHub/Android-Image-Cropper to get the source image from a uri