diff options
| author | jvoisin | 2018-04-30 23:57:05 +0200 |
|---|---|---|
| committer | jvoisin | 2018-04-30 23:57:05 +0200 |
| commit | c4271715e49bb90d9420a8394e250bc8bcabdbcb (patch) | |
| tree | bec89528ebc57b9a8d0edaace19d3ba558e63daf /src | |
| parent | 09930391c455dfbf0bc7ea1cb3f3bac5fe39b39e (diff) | |
Use full path to call exiftool
Diffstat (limited to 'src')
| -rw-r--r-- | src/images.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/images.py b/src/images.py index 13ae7a7..7c1abaa 100644 --- a/src/images.py +++ b/src/images.py | |||
| @@ -21,7 +21,7 @@ class PNGParser(abstract.AbstractParser): | |||
| 21 | 'Megapixels', 'ImageHeight'} | 21 | 'Megapixels', 'ImageHeight'} |
| 22 | 22 | ||
| 23 | def get_meta(self): | 23 | def get_meta(self): |
| 24 | out = subprocess.check_output(['exiftool', '-json', self.filename]) | 24 | out = subprocess.check_output(['/usr/bin/exiftool', '-json', self.filename]) |
| 25 | meta = json.loads(out.decode('utf-8'))[0] | 25 | meta = json.loads(out.decode('utf-8'))[0] |
| 26 | for key in self.meta_whitelist: | 26 | for key in self.meta_whitelist: |
| 27 | meta.pop(key, None) | 27 | meta.pop(key, None) |
| @@ -38,7 +38,7 @@ class GdkPixbufAbstractParser(abstract.AbstractParser): | |||
| 38 | this has the side-effect of removing metadata completely. | 38 | this has the side-effect of removing metadata completely. |
| 39 | """ | 39 | """ |
| 40 | def get_meta(self): | 40 | def get_meta(self): |
| 41 | out = subprocess.check_output(['exiftool', '-json', self.filename]) | 41 | out = subprocess.check_output(['/usr/bin/exiftool', '-json', self.filename]) |
| 42 | meta = json.loads(out.decode('utf-8'))[0] | 42 | meta = json.loads(out.decode('utf-8'))[0] |
| 43 | for key in self.meta_whitelist: | 43 | for key in self.meta_whitelist: |
| 44 | meta.pop(key, None) | 44 | meta.pop(key, None) |
