Skip to content

fixes error when reading GPSLatitudeRef and GPSLongitudeRef#133

Open
atobiese wants to merge 1 commit intohMatoba:masterfrom
atobiese:master
Open

fixes error when reading GPSLatitudeRef and GPSLongitudeRef#133
atobiese wants to merge 1 commit intohMatoba:masterfrom
atobiese:master

Conversation

@atobiese
Copy link

This fixes a parsing error when loading exif data. The fix retains the GPSLatitudeRef and GPSLongitudeRef data. This is needed for decimal degree calculation. It is curretly lost.
Before:
image
After:

image
image

@Saijin-Naib
Copy link

Does this still work for current code?

@atobiese
Copy link
Author

It is a bug, yes. The references are lost.

Regarding odm: I see that a fix has been implemented in ODM (photo.py) where the references are assumed if they are missing. A warning is then given. So references are assumed when images are resized.

@HerrMuellerluedenscheid
Copy link

@atobiese that looks like a reasonable fix. Can you open a MR at https://github.com/JEFuller/Piexif? @JEFuller kindly took the lead to revitalize support for Piexif (which is not supported here anymore apparently) and is already maintainer of the pypi package 👍

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

Successfully merging this pull request may close these issues.

3 participants