mirror of
https://github.com/photoprism/photoprism.git
synced 2026-03-02 22:57:18 -05:00
Question: GPS location warning if Exif data is not standard compliant #1278
Labels
No labels
ai
android
api
auth
awesome
bug
bug
ci
cli
config
database
declined
deprecated
docker
docs 📚
documents
duplicate
easy
enhancement
enhancement
enhancement
epic
faces
feedback wanted
frontend
hacktoberfest
help wanted
idea
in-progress
incomplete
index
invalid
ios
labels
live
live
low-priority
macos
member-feature
metadata
mobile
nas
needs-analysis
no-coding-required
no-coding-required
observability
performance
places
please-test
plus-feature
priority
pro-feature
question
raspberry-pi
raw
released
released
released
research
resolved
security
sharing
tested
tests
third-party-issue
thumbnails
upgrade
upstream-issue
ux
vector
video
waiting
won't fix
won't fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/photoprism#1278
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Oni on GitHub (Jan 3, 2022).
What does not work as expected?
When I scan the photo folders, I get a lot of "2022-01-03 19:33:42 INFO metadata: failed parsing GPS coordinates in <filename>.jpg (exif)" errors.
How can we reproduce it?
Try to scan this image:

What behavior do you expect?
On Windows 10, if I right click the image I can see the GPS coordinates just fine. So I expect PP to parse those coordinates as well.
Can you provide us with example files for testing or screenshots?
See above.
What version you are using?
Version 211215-93b26f19-Linux-x86_64 (docker image).
Any other helpful information?
None.
@graciousgrey commented on GitHub (Jan 4, 2022):
I can confirm I get similar debug messages when indexing this file:
2022-01-04 09:41:48 INFO metadata: failed parsing GPS coordinates in plantsgps.jpg (exif)2022-01-04 09:41:48 DEBU exif: no gps tags in plantsgps.jpg (gps info)For me the GPS information is extracted. I see the coordinates and location information on the files edit dialog in PhotoPrism as expected.
@Oni commented on GitHub (Jan 4, 2022):
Follow up.
The GPS information is, in fact, correctly displayed in PhotoPrism in the 'edit view' and the image is correctly placed on the map.
Apparently only the log is 'wrong' here.
@lastzero commented on GitHub (Jan 4, 2022):
The EXIF GPS metadata in the sample image you provided is not strictly standards-compliant. It is representing the GPSLatitude and GPSLongitude fields with values of type SRATIONAL (signed rational values, type = 10) and not with values of type RATIONAL (unsigned rational values, type = 5) as specified in the Exif 2.3 specification (pages 69-70).
@lastzero commented on GitHub (Jan 4, 2022):