react-native-multiple-image-picker icon indicating copy to clipboard operation
react-native-multiple-image-picker copied to clipboard

How to handle live pictures on iOS?

Open jlindberg-oss opened this issue 3 years ago • 5 comments

I have selected allowedLivePhotos=true.

Live photos showing fine in the image picker. But after I select, how do I show the l live photo within react native, or get the full path for uploading?

Right now only getting HEIC which seems to be just the image.

jlindberg-oss avatar Jul 25 '21 00:07 jlindberg-oss

I've tested both live and non-live photos and the live photo HEIC is always at least twice as big. So hopefully the HEIC is really storing the video too. But I haven't figured out how to show it yet.

jlindberg-oss avatar Jul 25 '21 01:07 jlindberg-oss

You can try this library to showing the live photos.

baronha avatar Jul 26 '21 02:07 baronha

@baronha thanks. that one is requiring imgUri and videoUri for the live photo. But when I have a live photo, react-native-multiple-image-picker is only showing one file (an image). How to get both imgUri and videoUri?

jlindberg-oss avatar Jul 27 '21 09:07 jlindberg-oss

@baronha thanks. that one is requiring imgUri and videoUri for the live photo. But when I have a live photo, react-native-multiple-image-picker is only showing one file (an image). How to get both imgUri and videoUri?

I have re-examined the problem. This is a bug that exists on iOS. I accidentally converted a LivePhoto to JPEG. I will find a way to fix it in the next versions.

baronha avatar Aug 09 '21 04:08 baronha

Thank you! I will be excited to test any fix.

jlindberg-oss avatar Aug 11 '21 23:08 jlindberg-oss