1
0
mirror of synced 2024-11-25 18:54:22 +01:00

Use full path to call exiftool

This commit is contained in:
jvoisin 2018-04-30 23:57:05 +02:00
parent 09930391c4
commit c4271715e4

View File

@ -21,7 +21,7 @@ class PNGParser(abstract.AbstractParser):
'Megapixels', 'ImageHeight'} 'Megapixels', 'ImageHeight'}
def get_meta(self): def get_meta(self):
out = subprocess.check_output(['exiftool', '-json', self.filename]) out = subprocess.check_output(['/usr/bin/exiftool', '-json', self.filename])
meta = json.loads(out.decode('utf-8'))[0] meta = json.loads(out.decode('utf-8'))[0]
for key in self.meta_whitelist: for key in self.meta_whitelist:
meta.pop(key, None) meta.pop(key, None)
@ -38,7 +38,7 @@ class GdkPixbufAbstractParser(abstract.AbstractParser):
this has the side-effect of removing metadata completely. this has the side-effect of removing metadata completely.
""" """
def get_meta(self): def get_meta(self):
out = subprocess.check_output(['exiftool', '-json', self.filename]) out = subprocess.check_output(['/usr/bin/exiftool', '-json', self.filename])
meta = json.loads(out.decode('utf-8'))[0] meta = json.loads(out.decode('utf-8'))[0]
for key in self.meta_whitelist: for key in self.meta_whitelist:
meta.pop(key, None) meta.pop(key, None)