summaryrefslogtreecommitdiff
path: root/src/images.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/images.py')
-rw-r--r--src/images.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/images.py b/src/images.py
index 560886a..93f3ec2 100644
--- a/src/images.py
+++ b/src/images.py
@@ -32,6 +32,9 @@ class PNGParser(abstract.AbstractParser):
32 return True 32 return True
33 33
34class GdkPixbufAbstractParser(abstract.AbstractParser): 34class GdkPixbufAbstractParser(abstract.AbstractParser):
35 """ GdkPixbuf can handle a lot of surfaces, so we're rending images on it,
36 this has the side-effect of removing metadata completely.
37 """
35 def get_meta(self): 38 def get_meta(self):
36 out = subprocess.check_output(['exiftool', '-json', self.filename]) 39 out = subprocess.check_output(['exiftool', '-json', self.filename])
37 meta = json.loads(out.decode('utf-8'))[0] 40 meta = json.loads(out.decode('utf-8'))[0]