Use full path to call exiftool
This commit is contained in:
parent
09930391c4
commit
c4271715e4
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user