summaryrefslogtreecommitdiff
path: root/src/images.py
diff options
context:
space:
mode:
authorjvoisin2018-04-02 23:40:08 +0200
committerjvoisin2018-04-02 23:40:08 +0200
commit04a0032e9fef6453b293cbba1464125662eba776 (patch)
tree48d95ee81687c108c16b19e00559acdbacc89039 /src/images.py
parentb5a5535e3fbad7abb6551655e8fe463fd7e0a09d (diff)
Add some comments
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]