react-native-exif icon indicating copy to clipboard operation
react-native-exif copied to clipboard

Cant read geolocation of image

Open BigPun86 opened this issue 7 years ago • 13 comments

Hey there!

Whatever i do when i try to get the location out of an Image then somehow there is no location data in my response. I have double checked if the image has a geolocation metadata with www.get-metadata.com just to be sure there is any metadata.

Any ideas why this happens?

Exif.getLatLong(absoluteImagePath)
  .then(({latitude, longitude}) => {console.warn('OK: ' + latitude + ', ' + longitude)})
  .catch(msg => console.warn('ERROR: ' + msg))

Error "TypeError: Cannot read property 'latitude' of undefined"

ENV: react-native 0.53.0 react-native-exif 0.3.0 iOS / Simulator & real device

BigPun86 avatar Sep 25 '18 13:09 BigPun86

+1

felansu avatar Oct 23 '18 21:10 felansu

+1

jainsneha23 avatar Aug 19 '19 19:08 jainsneha23

Any word on this?

Tasemu avatar Sep 09 '19 12:09 Tasemu

+1

nes123 avatar Sep 16 '19 18:09 nes123

🚶

felansu avatar Sep 16 '19 20:09 felansu

same here

yorickshan avatar Aug 04 '20 10:08 yorickshan

Same here. I think this project is dead. Try https://github.com/MikeKovarik/exifr

jvence avatar Feb 25 '21 09:02 jvence

+1

hungdev avatar Dec 15 '21 14:12 hungdev

Same here. I think this project is dead. Try https://github.com/MikeKovarik/exifr

But it doesnt work with react native. I cant setup it in react native.

hungdev avatar Dec 15 '21 14:12 hungdev

Any updates on this?

ianharoldonwater avatar Mar 09 '22 21:03 ianharoldonwater

@ianharoldonwater try this lib: https://github.com/mattiasw/ExifReader#using-react-native

hungdev avatar Mar 10 '22 04:03 hungdev

+1

SirCameron avatar Apr 15 '22 12:04 SirCameron

in this package it works: https://github.com/ivpusic/react-native-image-crop-picker We might try to see how we can implement it here as well.

nes123 avatar Nov 20 '22 02:11 nes123