Skip to content
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

Selecting image giving different results on ANDROID #2071

Open
NguyenHoangMinhkkkk opened this issue Jul 7, 2024 · 0 comments
Open

Selecting image giving different results on ANDROID #2071

NguyenHoangMinhkkkk opened this issue Jul 7, 2024 · 0 comments

Comments

@NguyenHoangMinhkkkk
Copy link

Version

Tell us which versions you are using:

"react-native-image-crop-picker": "^0.41.2"
"react-native": "0.68.7"

Platform

Tell us to which platform this issue is related

✅ IOS: Everything working good

❎ Android:
Real device: Google Pixel 3a

Expected behaviour

How to get the path of a image picked ? and to know is it the image picked already or not. and for identifying the image

Actual behaviour

On Android, when i run the code below for select images from library.
The paths are able to rendering by
But... everytime i select the same image. Result give different path, no filename, different modificationDate

======== Same file but different data
{
"modificationDate": "1720336345004",
"size": 429858,
"mime": "image/jpeg",
"height": 1080,
"width": 810,
"path": "file:///storage/emulated/0/Android/data/com.packagename/files/Pictures/74b401ba-28ee-41e3-bb37-3f6c7352b831.jpg"
}

======== Same file but different data
{
"modificationDate": "1720336351601",
"size": 429858,
"mime": "image/jpeg",
"height": 1080,
"width": 810,
"path": "file:///storage/emulated/0/Android/data/com.packagename/files/Pictures/b29cc714-16c5-41ed-8efa-a5c87c142d3e.jpg"
}

Steps to reproduce

const result: Image[] = await ImageCropPicker.openPicker({
  mediaType: 'photo',
  compressImageMaxHeight: 1080,
  compressImageMaxWidth: 1080,
  loadingLabelText: "some-string",
  maxFiles: 20,
  multiple: true
});
console.log("result", result)

Attachments

// stacktrace or any other useful debug info

Love react-native-image-crop-picker? Please consider supporting our collective:
👉 https://opencollective.com/react-native-image-crop-picker/donate

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

No branches or pull requests

1 participant