Commit c4271715 authored by jvoisin's avatar jvoisin

Use full path to call exiftool

parent 09930391
......@@ -21,7 +21,7 @@ class PNGParser(abstract.AbstractParser):
'Megapixels', 'ImageHeight'}
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]
for key in self.meta_whitelist:
meta.pop(key, None)
......@@ -38,7 +38,7 @@ class GdkPixbufAbstractParser(abstract.AbstractParser):
this has the side-effect of removing metadata completely.
"""
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]
for key in self.meta_whitelist:
meta.pop(key, None)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment