-
Notifications
You must be signed in to change notification settings - Fork 67
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
Request - exifr.gps() + Altitude #39
Comments
Hello, thanks for using the library. I'm on a vacation right now so I can't fully look into it yet. Could you elaborate about what goes with with the snippet you used. The concrete error it throws, or something I can latch onto while debugging? gpsa() I guess we can do that. I never encountered usable and reliable altitude field in any photo so it haven't crossed my mind yet. Url fetching in exifr is very basic. It can't handle redirects or any other difficult cases. There are many http libraries out there and not using one would require to implement it myself in exifr. That's a whole lot a of work, source of bugs, inflated file size, etc... Exifr is just the image parser (plus some sugar-y methods here and there). Sorry. You will have to fetch the file in your code and feed the buffer into exifr. I'll get back to you when I return. |
Hello. let tags = [
'GPSLatitude', 'GPSLongitude', 'GPSAltitude',
'GPSLatitudeRef', 'GPSLongitudeRef', 'GPSAltitudeRef',
]
let output = await exifr.parse(file, tags) and the output is
Important to note: you cannot use 'latitude', 'longitude' in the tags argument I know you mentioned some error occurred with this approach but I believe it was a typo (maybe you didn't use strings in the array), or there's a bug in exifr. In which case, I'd love to look into it if you provide me with the image. |
Hi,
I love the speed of the program only parsing certain lines, and I attempted
exifr.parse(file, [latitude, longitude, GPSAltitude])
but got an error and would rather not have to do the conversion from decimal lat/lon on my part.Could we have a
exifr.gpsA()
which returns the formatted lat/lon pair as well as the altitude (ideally rounded to 0 decimal places)?Thanks so much for your work on this!
One more thing, I tried to parse from a URL (hosted on Twilio, and involves a number of redirects, but it didn't seem to get to the image? Is there a way I can share a link with you privately?
Thanks,
TM
The text was updated successfully, but these errors were encountered: