mirror of https://gitlab.com/bashrc2/epicyon
Check that file gets copied
parent
6fbba92427
commit
48553013f6
3
media.py
3
media.py
|
@ -38,6 +38,9 @@ def removeMetaData(imageFilename: str, outputFilename: str) -> None:
|
|||
so better to use a dedicated tool if one is installed
|
||||
"""
|
||||
copyfile(imageFilename, outputFilename)
|
||||
if not os.path.isfile(outputFilename):
|
||||
print('ERROR: unable to remove metadata from ' + imageFilename)
|
||||
return
|
||||
if os.path.isfile('/usr/bin/exiftool'):
|
||||
print('Removing metadata from ' + outputFilename + ' using exiftool')
|
||||
os.system('exiftool -all= ' + outputFilename)
|
||||
|
|
Loading…
Reference in New Issue