ivpusic / react-native-image-crop-picker

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
MIT License
6.05k stars 1.54k forks source link

bug: Live Photos are not accessible from Gallery. #1574

Open alihussnain-git opened 3 years ago

alihussnain-git commented 3 years ago

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

  1. Open gallery form image selection using ImagePicker.openPicker

  2. Select any Live Photo

  3. 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}

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

160905 commented 3 years ago

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"