From 035ed97033969c5cf97fcad3746839ca65956b5b Mon Sep 17 00:00:00 2001 From: Peter Doherty Date: Mon, 19 Apr 2021 05:19:04 -0400 Subject: [PATCH] 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 --- docker/scripts/heif-convert.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/scripts/heif-convert.sh b/docker/scripts/heif-convert.sh index 2946d916c..b95f9dc81 100755 --- a/docker/scripts/heif-convert.sh +++ b/docker/scripts/heif-convert.sh @@ -12,4 +12,4 @@ fi # Remove Exif orientation flag as JPEG is rotated already: -/usr/bin/exiftool -n -Orientation=1 "$2" \ No newline at end of file +/usr/bin/exiftool -overwrite_original -P -n -Orientation=1 "$2"