While selecting images from Gallery all available images should accessible and working perfectly.
Actual behaviour
Using ImagePicker.openPicker({ mediaType: 'photo' }) opening gallery but on selection of any Live Photo(which is captured by camera and present in Gallery) the response being returned is not valid/usable.
Steps to reproduce
Open gallery form image selection using ImagePicker.openPicker
Select any Live Photo
Selected Image not being returned
P.s. I have tried the forceJpg props and all the relevant things available in the library documentation but this bug still persists, this behaviour can be bypassed by using cropping:true while calling ImagePicker.openPicker but then PHPickerViewController also become irrelevant because the permission dialogue start showing again and default cropping is not good as ImagePicker.openCropper.
response in case of live photo selection:
{"creationDate": "1619423975", "cropRect": null, "data": null, "duration": null, "exif": null, "filename": "IMG_0113.pvt", "height": 0, "localIdentifier": "IMG_0113", "mime": "image/heic", "modificationDate": "1619423975", "path": "file:///var/mobile/Containers/Data/Application/D1E48FF2-70AC-4A32-8333-7360F6F23C7A/tmp/IMG_0113.pvt", "size": 0, "sourceURL": "file:///var/mobile/Containers/Data/Application/D1E48FF2-70AC-4A32-8333-7360F6F23C7A/tmp/IMG_0113.pvt", "width": 0}
I also encountered the same version issue.
"react-native": "0.64.0",
"react-native-code-push": "^6.2.1",
"react-native-gesture-handler": "^1.10.3",
"react-native-image-crop-picker": "^0.36.1"
Version
Tell us which versions you are using:
Platform
Tell us to which platform this issue is related
Expected behaviour
While selecting images from Gallery all available images should accessible and working perfectly.
Actual behaviour
Using
ImagePicker.openPicker({ mediaType: 'photo' })
opening gallery but on selection of any Live Photo(which is captured by camera and present in Gallery) the response being returned is not valid/usable.Steps to reproduce
Open gallery form image selection using
ImagePicker.openPicker
Select any Live Photo
Selected Image not being returned
P.s. I have tried the
forceJpg
props and all the relevant things available in the library documentation but this bug still persists, this behaviour can be bypassed by usingcropping:true
while callingImagePicker.openPicker
but thenPHPickerViewController
also become irrelevant because the permission dialogue start showing again and default cropping is not good asImagePicker.openCropper
.response in case of live photo selection: {"creationDate": "1619423975", "cropRect": null, "data": null, "duration": null, "exif": null, "filename": "IMG_0113.pvt", "height": 0, "localIdentifier": "IMG_0113", "mime": "image/heic", "modificationDate": "1619423975", "path": "file:///var/mobile/Containers/Data/Application/D1E48FF2-70AC-4A32-8333-7360F6F23C7A/tmp/IMG_0113.pvt", "size": 0, "sourceURL": "file:///var/mobile/Containers/Data/Application/D1E48FF2-70AC-4A32-8333-7360F6F23C7A/tmp/IMG_0113.pvt", "width": 0}
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