From da795dfc5a95eb48cb35de22eecfb7909e8fa099 Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Tue, 8 Oct 2013 17:11:08 -0500 Subject: [PATCH] Add resize scripts --- bin/resize-launcher.sh | 10 ++++++++++ bin/resize-notification.sh | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100755 bin/resize-launcher.sh create mode 100755 bin/resize-notification.sh diff --git a/bin/resize-launcher.sh b/bin/resize-launcher.sh new file mode 100755 index 000000000..4810d9390 --- /dev/null +++ b/bin/resize-launcher.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +INPUT="$1" +FILENAME="$2" +RESOURCES=../astrid/src/main/res + +convert -resize 144x144 ${INPUT} ${RESOURCES}/drawable-xxhdpi/${FILENAME} +convert -resize 96x96 ${INPUT} ${RESOURCES}/drawable-xhdpi/${FILENAME} +convert -resize 72x72 ${INPUT} ${RESOURCES}/drawable-hdpi/${FILENAME} +convert -resize 48x48 ${INPUT} ${RESOURCES}/drawable/${FILENAME} diff --git a/bin/resize-notification.sh b/bin/resize-notification.sh new file mode 100755 index 000000000..979641609 --- /dev/null +++ b/bin/resize-notification.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +INPUT="$1" +FILENAME="$2" +RESOURCES=../astrid/src/main/res + +convert -resize 72x72 ${INPUT} ${RESOURCES}/drawable-xxhdpi/${FILENAME} +convert -resize 48x48 ${INPUT} ${RESOURCES}/drawable-xhdpi/${FILENAME} +convert -resize 36x36 ${INPUT} ${RESOURCES}/drawable-hdpi/${FILENAME} +convert -resize 24x24 ${INPUT} ${RESOURCES}/drawable/${FILENAME}