From 4fdbeed621c9fcec275189665471b2ed6aa46059 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Thu, 6 Oct 2022 21:54:41 +0200 Subject: [PATCH] HEIF: Update heif-convert.sh script #2726 Signed-off-by: Michael Mayer --- scripts/dist/heif-convert.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/dist/heif-convert.sh b/scripts/dist/heif-convert.sh index ccb35a9a0..56b37575b 100755 --- a/scripts/dist/heif-convert.sh +++ b/scripts/dist/heif-convert.sh @@ -7,7 +7,14 @@ fi # Usage: heif-convert [-q quality 0..100] -/usr/bin/heif-convert -q 92 "$1" "$2" +if [[ -f "/usr/bin/heif-convert" ]]; then + /usr/bin/heif-convert -q 92 "$1" "$2" +elif [[ -f "/usr/local/bin/heif-convert" ]]; then + /usr/local/bin/heif-convert -q 92 "$1" "$2" +else + echo "heif-convert not found" 1>&2 + exit 1 +fi # Reset Exif orientation flag if output image was rotated based on "QuickTime:Rotation"