Closed psytraxx closed 2 weeks ago
Hi,
Yes, I found the problem - however, I wouldn't say that you are doing something wrong ;-)
The reason you only get four u8 values is that you don't get a GPSLatitute
tag with your code, even though you requested it, but get a InteroperabilityVersion
tag instead. Why? Because some people when writing the EXIF standard and all the related documents thought it would be a good idea to give both tags the same hex value, 0x0001. My mistake that I forgot to check the group when requesting a tag via get_tag
- will publish a fix for this!
Also: The way you are converting the values with bytes_to_geolocation
feels a bit... "hacky", especially since I introduced the datatype for handling the rational values these tags store. What would, in your opinion, be a good function provided by little_exif to make accessing this data easier?
Wow - this was fast - thank you for your answer - I am aware of the "hackiness" of my solution :) it would be great to have a method similar to _value_as_u8vec - for example _value_as_rational64uvec - this would allow my to work with the now six RATIONAL64U values returned and convert those to my needed decimal representation of lat/long
Bugfix has been published!
it would be great to have a method similar to _value_as_u8vec - for example _value_as_rational64uvec - this would allow my to work with the now six RATIONAL64U values returned and convert those to my needed decimal representation of lat/long
Thanks for the input! I'll think about how to best implement this and will release something that goes into this direction soon.
great - thank you - i can confirm this is now fixed with 0.6.1
Hi There - I am trying to read EXIF geolocation from a sample jpeg -
It works after some research but only for the GPSLongitude tag - not GPSLatitude -
In the first case
for
returns 24 u8 values which i am able to convert to a decimal using
this matches with the output from exiftool for the attached file
for GPSLatitude i only receive 4 u8 values instead of 24 u8. this behavior is consistant -also with other jpegs
do you have an idea what i am doing wrong?
thank you