Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difference in GPS output on Desktop and Android. #378

Closed
Raketten1963 opened this issue Aug 21, 2024 · 5 comments
Closed

Difference in GPS output on Desktop and Android. #378

Raketten1963 opened this issue Aug 21, 2024 · 5 comments

Comments

@Raketten1963
Copy link

  • 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

@Raketten1963
Copy link
Author

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...

@Raketten1963
Copy link
Author

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

@mattiasw
Copy link
Owner

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.

@mattiasw
Copy link
Owner

mattiasw commented Sep 5, 2024

I added this info to the README and linked to this thread: https://github.com/mattiasw/ExifReader#gps

@mattiasw mattiasw closed this as completed Sep 5, 2024
@Raketten1963
Copy link
Author

Raketten1963 commented Sep 6, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants