diff options
| -rw-r--r-- | mat/mat.py | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -54,10 +54,11 @@ except ImportError: | |||
| 54 | print('Unable to import python-mutagen: limited audio format support') | 54 | print('Unable to import python-mutagen: limited audio format support') |
| 55 | 55 | ||
| 56 | try: | 56 | try: |
| 57 | # check if exiftool is installed on the system | ||
| 57 | subprocess.Popen('exiftool', stdout=open('/dev/null')) | 58 | subprocess.Popen('exiftool', stdout=open('/dev/null')) |
| 58 | import exiftool | 59 | import exiftool |
| 59 | STRIPPERS['image/jpeg'] = exiftool.JpegStripper | 60 | STRIPPERS['image/jpeg'] = exiftool.JpegStripper |
| 60 | STRIPPERS['image/png'] = images.PngStripper | 61 | STRIPPERS['image/png'] = exiftool.PngStripper |
| 61 | except: | 62 | except: |
| 62 | print('Unable to find exiftool: limited images support') | 63 | print('Unable to find exiftool: limited images support') |
| 63 | STRIPPERS['image/jpeg'] = images.JpegStripper | 64 | STRIPPERS['image/jpeg'] = images.JpegStripper |
