lodev09 / react-native-exify

Read and write Exif metadata from/into an image 🏷️
MIT License
23 stars 2 forks source link

Getting null in Android when checking exif data #5

Open HashP08 opened 2 months ago

HashP08 commented 2 months ago

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

lodev09 commented 2 months ago

Do you have a sample code?

HashP08 commented 2 months ago

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 }

lodev09 commented 2 months ago

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