summaryrefslogtreecommitdiff
path: root/mat/exiftool.py
diff options
context:
space:
mode:
Diffstat (limited to 'mat/exiftool.py')
-rw-r--r--mat/exiftool.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/mat/exiftool.py b/mat/exiftool.py
index 1d2d116..c6c1ada 100644
--- a/mat/exiftool.py
+++ b/mat/exiftool.py
@@ -32,13 +32,16 @@ class ExiftoolStripper(parser.GenericParser):
32 ''' 32 '''
33 try: 33 try:
34 if self.backup: 34 if self.backup:
35 # Note: '-All=' must be followed by a known exiftool option.
35 process = subprocess.Popen(['exiftool', '-All=', 36 process = subprocess.Popen(['exiftool', '-All=',
36 '-out', self.output, self.filename], 37 '-out', self.output, self.filename],
37 stdout=open('/dev/null')) 38 stdout=open('/dev/null'))
38 process.wait() 39 process.wait()
39 else: 40 else:
40 process = subprocess.Popen(['exiftool', '-overwrite_original', 41 # Note: '-All=' must be followed by a known exiftool option.
41 '-All=', self.filename], stdout=open('/dev/null')) 42 process = subprocess.Popen(
43 [ 'exiftool', '-All=', '-overwrite_original', self.filename ],
44 stdout=open('/dev/null'))
42 process.wait() 45 process.wait()
43 return True 46 return True
44 except: 47 except: