Difference in GPS output on Desktop and Android.
- ExifReader version: 4.23.3
Hi there,
I know this has been discussed before, but I am quite sure my problem is different.
I use webpack to do a simple PWA where I make a call to load for a file, and get the results back. All is fine on desktop, while on Android load returns a lot of NaN for the GPS values.
I tried the examples, and they return the values just fione on both desktop and android.
Is anybody else seeing this behaviour?
KInd Regards Henrik
I just build a minimum sample and put it at https://exif.ipdb.plus and it does not fail on Android.
THis lead me to suspect that it is somehow unhappy with living with some of the other modules I use, so I will start adding them one by one and see what is happening.
Any pointers are super welcome...
It appear to have to do with the input element type=file, which will strip GPS info if you include the accept="" in the input element. If you skip that, you will get your GPS info....sigh
Wow, what a find. I wonder what the reason is for that, especially if you can get around it by not setting the accept attribute. Sorry for not being of any help, but I don't think I would have guessed this was the reason.
I added this info to the README and linked to this thread: https://github.com/mattiasw/ExifReader#gps
Thanks Mattias,
I think you should change the type="File" accept="image/*" as this is what will make it fail, see below
I think this will help many people moving forward.
I am not sure if this also apply to iOS, but I think having the text there, will help people on iOS anyway, as they might try out removing the 'type' specification.
Kind regards Henrik
From: Mattias Wallander @.> Sent: Thursday, September 5, 2024 6:10 PM To: mattiasw/ExifReader @.> Cc: Henrik Rasmussen @.>; Author @.> Subject: Re: [mattiasw/ExifReader] Difference in GPS output on Desktop and Android. (Issue #378)
I added this info to the README and linked to this thread: https://github.com/mattiasw/ExifReader#gps
— Reply to this email directly, view it on GitHubhttps://github.com/mattiasw/ExifReader/issues/378#issuecomment-2332131724, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AO3TIRT42OYKPKDRGJVCIHDZVB65TAVCNFSM6AAAAABM4CLICWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZSGEZTCNZSGQ. You are receiving this because you authored the thread.