From 4bbb0733285fb168e77e06e7cb4be07e128f5f8f Mon Sep 17 00:00:00 2001 From: Stefan Herold <794372+Blackjacx@users.noreply.github.com> Date: Tue, 22 Oct 2024 23:06:29 +0200 Subject: [PATCH] Fix deprecation warning of convert --- xcode/iconizer.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xcode/iconizer.sh b/xcode/iconizer.sh index 904f9a7..bb07538 100755 --- a/xcode/iconizer.sh +++ b/xcode/iconizer.sh @@ -45,12 +45,12 @@ generateImages() { } generateImage() { - image=$(jq ".images[$1]" $CONTENTS_PATH) + image=$(jq ".images[$1]" "$CONTENTS_PATH") - scale=$(echo $image | jq -r ".scale" | cut -d "x" -f 1) + scale=$(echo "$image" | jq -r ".scale" | cut -d "x" -f 1) [ $scale != "null" ] || scale=1 - sizePT=$(echo $image | jq -r ".size" | cut -d "x" -f 1) + sizePT=$(echo "$image" | jq -r ".size" | cut -d "x" -f 1) sizePX=$(bc -l <<<"scale=1; $sizePT*$scale" | cut -d "." -f 1) newFileName="appicon_${sizePX}.png" @@ -62,7 +62,7 @@ generateImage() { echo "File $newFileName already created... Continue ✅" else echo -n "Generating $newFileName" - convert -density 400 "$PDF_PATH" -scale "$sizePX" "$APP_ICON_SET_PATH/$newFileName" + magick -density 400 "$PDF_PATH" -scale "$sizePX" "$APP_ICON_SET_PATH/$newFileName" echo " ✅" fi }