Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Add source image uri #69

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

thirstycoda
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant