From 33b90e9b6f3124914158ebca0a715337dc1430cb Mon Sep 17 00:00:00 2001 From: wiredfool Date: Tue, 20 Oct 2015 20:14:21 +0100 Subject: [PATCH] rolling back gps exif support to match pre 3.0.0 results --- PIL/JpegImagePlugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PIL/JpegImagePlugin.py b/PIL/JpegImagePlugin.py index 7bd4b5335..5305fe6e5 100644 --- a/PIL/JpegImagePlugin.py +++ b/PIL/JpegImagePlugin.py @@ -432,9 +432,9 @@ def _getexif(self): except (KeyError, TypeError): pass else: - info = TiffImagePlugin.ImageFileDirectory_v2(head) + info = TiffImagePlugin.ImageFileDirectory_v1(head) info.load(file) - exif[0x8825] = dict(info) + exif[0x8825] = dict([(k,v[0]) if len(v) == 1 else (k,v) for k,v in info.items()]) return exif