From 7a072c67c34703aaf1bd2ed3f0a9a4e02bd636b6 Mon Sep 17 00:00:00 2001 From: Stefan Date: Sun, 6 Jul 2014 00:42:20 +0300 Subject: [PATCH] Avoid SVG white mini background on screen images On SVG images that I've tested, it creates a white rectangular mini background between image and the color defined by the 2nd parameter. --- phonegap-icon-splash-generator.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phonegap-icon-splash-generator.sh b/phonegap-icon-splash-generator.sh index f9570ce..899a7e8 100755 --- a/phonegap-icon-splash-generator.sh +++ b/phonegap-icon-splash-generator.sh @@ -43,7 +43,7 @@ $convert "$1" -resize 48x48 "$3/res/icon/windows-phone/icon-48.png" $convert "$1" -resize 173x173 "$3/res/icon/windows-phone/icon-173-tile.png" $convert "$1" -resize 62x62 "$3/res/icon/windows-phone/icon-62-tile.png" -convert="convert $1 -background $2 -gravity center" +convert="convert -background $2 $1 -gravity center" $convert -resize 512x512 -extent 1280x720 "$3/res/screen/android/screen-xhdpi-landscape.png" $convert -resize 256x256 -extent 480x800 "$3/res/screen/android/screen-hdpi-portrait.png" $convert -resize 128x128 -extent 320x200 "$3/res/screen/android/screen-ldpi-landscape.png"