Add -overwrite_original option to exiftool (#1201)

Add -overwrite_original option to exiftool to avoid creating a copy of
the image file.
Adds -P option to preserve file modification time
This commit is contained in:
Peter Doherty 2021-04-19 05:19:04 -04:00 committed by GitHub
parent cc8998f9a9
commit 035ed97033
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,4 +12,4 @@ fi
# Remove Exif orientation flag as JPEG is rotated already:
/usr/bin/exiftool -n -Orientation=1 "$2"
/usr/bin/exiftool -overwrite_original -P -n -Orientation=1 "$2"