ImagePicker gif and video

#1

Hi, i’m using imagepicker to pick a gif photo but the result.uri always return jpg. So, I cant play the gif on my App.
By the way, ImagePicker not support video picker.
Thanks for reply.

0 Likes

#2

Hey @dungit not sure if you’re using Expo, but thanks for writing in about your problem!

I checked on http://native.directory/?search=image-picker and found that we actually don’t support react-native-image-picker so I recommend you hit up the maintainers of the library if you need support on how to use their stuff.

Let me know if I can be of any more help!

Edit: There is support in Expo for ImagePicker now: https://docs.expo.io/versions/v28.0.0/sdk/imagepicker#__next

0 Likes

#3

@jimmylee I might be missing something here, but I’m not seeing where expo is using react-native-image-picker

Is this still the case?

0 Likes

#4

Hey @stevendiversifit I was just mentioning in the previous response that back in October 2017 react-native-image-picker didn’t work with Expo projects.

Right now we actually have a solution for ImagePicker, and its here: https://docs.expo.io/versions/v28.0.0/sdk/imagepicker#__next

Check it out and let me know if you need any more help!

0 Likes

#5

Gotcha. I’m using the expo ImagePicker now and can’t get gif images properly

They always come through as jpegs. Any ideas or code you know works to get a gif?

Thanks!

1 Like

#6

This is one of the better examples we have right now: https://github.com/expo/image-upload-example/blob/master/frontend/App.js

We currently do not support Gifs, you can pile on to the request here!
https://expo.canny.io/feature-requests/p/image-picker-doesnt-support-gifs-upload

0 Likes

#7

Gotcha. Thanks for the links! I will go support that request :slight_smile:

1 Like