1
0
Fork 0
mirror of synced 2025-07-04 20:37:34 +02:00

Add some comments

This commit is contained in:
jvoisin 2018-04-02 23:40:08 +02:00
parent b5a5535e3f
commit 04a0032e9f
3 changed files with 5 additions and 0 deletions

View file

@ -32,6 +32,9 @@ class PNGParser(abstract.AbstractParser):
return True
class GdkPixbufAbstractParser(abstract.AbstractParser):
""" GdkPixbuf can handle a lot of surfaces, so we're rending images on it,
this has the side-effect of removing metadata completely.
"""
def get_meta(self):
out = subprocess.check_output(['exiftool', '-json', self.filename])
meta = json.loads(out.decode('utf-8'))[0]