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

Latitude and Longitude information not read correctly on certain JPG images #361

Open
benpaulsen-gruntify opened this issue Jan 30, 2025 · 0 comments

Comments

@benpaulsen-gruntify
Copy link

Certain JPG images - of which I have not yet found a distinguishing factor, are returning null longitude and latitude values when they do actually have GPS information stored in metadata. If there's something in the files that I'm missing please let me know.

Example 1 - GPS information not retrieved

Image: Image
Tags output:

{
    "Keywords": [],
    "Rating": null,
    "DateTime": "2025-01-21T13:33:23",
    "Orientation": 0,
    "Software": "T575XXSBEXJ3",
    "Latitude": null,
    "Longitude": null,
    "Altitude": 443,
    "ExposureTime": 0.0005,
    "FNumber": 1.9,
    "ISOSpeedRatings": 40,
    "FocalLength": 3.58,
    "FocalLengthIn35mmFilm": 27,
    "Make": "samsung",
    "Model": "SM-T575",
    "Creator": null,
    "TagTypes": 1024,
    "Title": null,
    "TitleSort": null,
    "Subtitle": null,
    "Description": null,
    "Performers": [],
    "PerformersSort": [],
    "PerformersRole": [],
    "AlbumArtists": [],
    "AlbumArtistsSort": [],
    "Composers": [],
    "ComposersSort": [],
    "Album": null,
    "AlbumSort": null,
    "Comment": "",
    "Genres": [],
    "Year": 0,
    "Track": 0,
    "TrackCount": 0,
    "Disc": 0,
    "DiscCount": 0,
    "Lyrics": null,
    "Grouping": null,
    "BeatsPerMinute": 0,
    "Conductor": null,
    "Copyright": null,
    "DateTagged": null,
    "MusicBrainzArtistId": null,
    "MusicBrainzReleaseGroupId": null,
    "MusicBrainzReleaseId": null,
    "MusicBrainzReleaseArtistId": null,
    "MusicBrainzTrackId": null,
    "MusicBrainzDiscId": null,
    "MusicIpId": null,
    "AmazonId": null,
    "MusicBrainzReleaseStatus": null,
    "MusicBrainzReleaseType": null,
    "MusicBrainzReleaseCountry": null,
    "ReplayGainTrackGain": "NaN",
    "ReplayGainTrackPeak": "NaN",
    "ReplayGainAlbumGain": "NaN",
    "ReplayGainAlbumPeak": "NaN",
    "InitialKey": null,
    "RemixedBy": null,
    "Publisher": null,
    "ISRC": null,
    "Length": null,
    "Pictures": [],
    "Artists": [],
    "FirstArtist": null,
    "FirstAlbumArtist": null,
    "FirstAlbumArtistSort": null,
    "FirstPerformer": null,
    "FirstPerformerSort": null,
    "FirstComposerSort": null,
    "FirstComposer": null,
    "FirstGenre": null,
    "JoinedArtists": null,
    "JoinedAlbumArtists": null,
    "JoinedPerformers": null,
    "JoinedPerformersSort": null,
    "JoinedComposers": null,
    "JoinedGenres": null,
    "IsEmpty": true
}

Actual long: 151.35205
Actual lat: -26.983333333333334
Actual alt: 443

Example 2 - GPS information retrieved correctly

Image: Image
Tags output:

{
    "Keywords": [],
    "Rating": null,
    "DateTime": "2023-08-23T14:32:56",
    "Orientation": 1,
    "Software": "G996BXXS9EWH1",
    "Latitude": -27.4472032,
    "Longitude": 153.03424,
    "Altitude": null,
    "ExposureTime": 0.01,
    "FNumber": 1.8,
    "ISOSpeedRatings": 64,
    "FocalLength": 5.4,
    "FocalLengthIn35mmFilm": 26,
    "Make": "samsung",
    "Model": "SM-G996B",
    "Creator": null,
    "TagTypes": 1024,
    "Title": null,
    "TitleSort": null,
    "Subtitle": null,
    "Description": null,
    "Performers": [],
    "PerformersSort": [],
    "PerformersRole": [],
    "AlbumArtists": [],
    "AlbumArtistsSort": [],
    "Composers": [],
    "ComposersSort": [],
    "Album": null,
    "AlbumSort": null,
    "Comment": "",
    "Genres": [],
    "Year": 0,
    "Track": 0,
    "TrackCount": 0,
    "Disc": 0,
    "DiscCount": 0,
    "Lyrics": null,
    "Grouping": null,
    "BeatsPerMinute": 0,
    "Conductor": null,
    "Copyright": null,
    "DateTagged": null,
    "MusicBrainzArtistId": null,
    "MusicBrainzReleaseGroupId": null,
    "MusicBrainzReleaseId": null,
    "MusicBrainzReleaseArtistId": null,
    "MusicBrainzTrackId": null,
    "MusicBrainzDiscId": null,
    "MusicIpId": null,
    "AmazonId": null,
    "MusicBrainzReleaseStatus": null,
    "MusicBrainzReleaseType": null,
    "MusicBrainzReleaseCountry": null,
    "ReplayGainTrackGain": "NaN",
    "ReplayGainTrackPeak": "NaN",
    "ReplayGainAlbumGain": "NaN",
    "ReplayGainAlbumPeak": "NaN",
    "InitialKey": null,
    "RemixedBy": null,
    "Publisher": null,
    "ISRC": null,
    "Length": null,
    "Pictures": [],
    "Artists": [],
    "FirstArtist": null,
    "FirstAlbumArtist": null,
    "FirstAlbumArtistSort": null,
    "FirstPerformer": null,
    "FirstPerformerSort": null,
    "FirstComposerSort": null,
    "FirstComposer": null,
    "FirstGenre": null,
    "JoinedArtists": null,
    "JoinedAlbumArtists": null,
    "JoinedPerformers": null,
    "JoinedPerformersSort": null,
    "JoinedComposers": null,
    "JoinedGenres": null,
    "IsEmpty": true
}

Actual long: 153.03423997222222
Actual lat: -27.447203194444445
Actual alt: null

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

1 participant