From bc875dc7cc7c3f62647dc37a7441fcf252379de5 Mon Sep 17 00:00:00 2001 From: warp Date: Sun, 26 Aug 2012 22:12:25 +0200 Subject: [PATCH] Fix for issue #491, invert latitude when neccesary. --- mediagoblin/tools/exif.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.25.1