mybigday / react-native-media-meta

Get media file metadata in your React Native app
MIT License
83 stars 46 forks source link

It does not work for images #24

Open kevmmdev opened 4 years ago

kevmmdev commented 4 years ago

Just added this on a React Native app (0.60+), tested it on iphone 11 pro, it works on videos but sadly not on images that I captured from the phone.

I get this object when I select a video: { creationDate: "2019-12-27T22:34:50+0800" duration: 11058.333333333334 height: 1920 location: "+13.6296+123.1983+014.891/" thumb: "iVBORw0KGgoAAAANSUhEUgAABaAAAAeACAYAAAA4k/DXAAABYW" width: 1440 }

And if I select an image I get {}.

It would had been great if it works for images as well, for example I need to get the location taken of the image.

My question is there a way to make this work for image? or possibility adding this in the future?

visoft commented 2 years ago

I'm seeing the same issue. In iOS, my image's data is always {}

On Android, I get file not found. These are local file paths that I'm getting my Share Extension.