From 4800b1a49fe0f7d5740486a224b357e05b985174 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Mon, 10 Jun 2024 21:15:26 -0700 Subject: [PATCH] Stop scaling 1x icons for iOS --- scale-app-icons | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/scale-app-icons b/scale-app-icons index 3700cd7..0a4195f 100755 --- a/scale-app-icons +++ b/scale-app-icons @@ -26,24 +26,15 @@ APPSTORE_FILE="${OUT_DIR}/${FILENAME%.png}_marketing_1024.png" echo "> convert '${IN_FILE}' -scale 1024x1024 '${APPSTORE_FILE}'" gm convert "$IN_FILE" -scale 1024x1024 "$APPSTORE_FILE" -for SIZE in 20 29 40 60; do - PREFIX="${FILENAME%.png}_iPhone_$SIZE" - echo "* Generating iPhone icons at $SIZE points with filename prefix $PREFIX" +for SIZE in 20 29 38 40 60 64 68 76 83.5; do + PREFIX="${FILENAME%.png}_iOS_$SIZE" + echo "* Generating iOS icons at $SIZE points with filename prefix $PREFIX" S=$((2 * SIZE)) gm convert "$IN_FILE" -scale ${S}x${S} "$OUT_DIR/$PREFIX@2x.png" S=$((3 * SIZE)) gm convert "$IN_FILE" -scale ${S}x${S} "$OUT_DIR/$PREFIX@3x.png" done -for SIZE in 20 29 40 76 83.5; do - PREFIX="${FILENAME%.png}_iPad_$SIZE" - echo "* Generating iPad icons at $SIZE points with filename prefix $PREFIX" - S=$SIZE - gm convert "$IN_FILE" -scale ${S}x${S} "$OUT_DIR/$PREFIX.png" - S=$((2 * SIZE)) - gm convert "$IN_FILE" -scale ${S}x${S} "$OUT_DIR/$PREFIX@2x.png" -done - for SIZE in 16 32 128 256 512; do PREFIX="${FILENAME%.png}_Mac_$SIZE" echo "* Generating Mac icons at $SIZE points with filename prefix $PREFIX"