aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwarp <kuno@frob.nl>2012-08-26 22:12:25 +0200
committerJoar Wandborg <git@wandborg.com>2012-08-27 15:55:43 +0200
commitbc875dc7cc7c3f62647dc37a7441fcf252379de5 (patch)
tree584ac8f78e2aae23e1341734bee21c7273893fc1
parent47cdc020a1a017a692f69f1528f8b45fcddcb841 (diff)
downloadmediagoblin-bc875dc7cc7c3f62647dc37a7441fcf252379de5.tar.lz
mediagoblin-bc875dc7cc7c3f62647dc37a7441fcf252379de5.tar.xz
mediagoblin-bc875dc7cc7c3f62647dc37a7441fcf252379de5.zip
Fix for issue #491, invert latitude when neccesary.
-rw-r--r--mediagoblin/tools/exif.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mediagoblin/tools/exif.py b/mediagoblin/tools/exif.py
index 98c3de27..543484c9 100644
--- a/mediagoblin/tools/exif.py
+++ b/mediagoblin/tools/exif.py
@@ -171,6 +171,9 @@ def get_gps_data(tags):
+ (float(v[2].num) / float(v[2].den) / (60 * 60))
)(dat.values)
+ if tags['GPS GPSLatitudeRef'].values == 'S':
+ gps_data['latitude'] /= -1
+
if tags['GPS GPSLongitudeRef'].values == 'W':
gps_data['longitude'] /= -1