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

Getting null in Android when checking exif data

Open HashP08 opened this issue 1 year ago • 4 comments
trafficstars

i am trying to access image metadata in android by passing the image address in readAsync method but it is returning null for me. On ios it is working fine sample url - https://www.geoimgr.com/images/samples/england-london-bridge.jpg

HashP08 avatar Jul 19 '24 17:07 HashP08

Do you have a sample code?

lodev09 avatar Jul 19 '24 18:07 lodev09

No, but my implementation is very basic in function call just checking the response

const result = await readAsync('https://www.geoimgr.com/images/samples/england-london-bridge.jpg') result && console.log('result tags', result) if(result){ // do operation }

HashP08 avatar Jul 19 '24 20:07 HashP08

Ohh... I see.. I think I missed supporting web urls and IOS does it automatically 😄 I'll do a PR when I get a chance to fix it.. For now, you can use a File System package to save the image first and then read it

lodev09 avatar Jul 19 '24 20:07 lodev09

SDK android 13+ it always returning null for geo exif data

ungaaaabungaaa avatar Feb 05 '25 12:02 ungaaaabungaaa