Skip to content

Commit 86a3dff

Browse files
committed
Fill background of auto-generated splash images for android
1 parent 7308832 commit 86a3dff

20 files changed

+12
-12
lines changed

scripts/build-android-drawable-icons-and-splash.sh

+12-12
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ convert -verbose -density 480 -background none "$iconSvgFile" -resize 144x144 -g
2121
convert -verbose -density 640 -background none "$iconSvgFile" -resize 192x192 -gravity center -extent 192x192 "$dir/drawable-xxxhdpi-icon.png"
2222
convert -verbose -density 1280 -background none "$iconSvgFile" -resize 512x512 -gravity center -extent 512x512 "$dir/drawable-store-icon.png"
2323
# Splash screen (portrait):
24-
convert -verbose -density 120 -background none "$splashPortSvgFile" -resize 200x320 -gravity center -extent 200x320 "$dir/drawable-ldpi-splash-port.png"
25-
convert -verbose -density 160 -background none "$splashPortSvgFile" -resize 320x480 -gravity center -extent 320x480 "$dir/drawable-mdpi-splash-port.png"
26-
convert -verbose -density 240 -background none "$splashPortSvgFile" -resize 480x800 -gravity center -extent 480x800 "$dir/drawable-hdpi-splash-port.png"
27-
convert -verbose -density 320 -background none "$splashPortSvgFile" -resize 720x1280 -gravity center -extent 720x1280 "$dir/drawable-xhdpi-splash-port.png"
28-
convert -verbose -density 480 -background none "$splashPortSvgFile" -resize 960x1600 -gravity center -extent 960x1600 "$dir/drawable-xxhdpi-splash-port.png"
29-
convert -verbose -density 640 -background none "$splashPortSvgFile" -resize 1280x1920 -gravity center -extent 1280x1920 "$dir/drawable-xxxhdpi-splash-port.png"
24+
convert -verbose -density 120 -background "#222" "$splashPortSvgFile" -resize 200x320 -gravity center -extent 200x320 "$dir/drawable-ldpi-splash-port.png"
25+
convert -verbose -density 160 -background "#222" "$splashPortSvgFile" -resize 320x480 -gravity center -extent 320x480 "$dir/drawable-mdpi-splash-port.png"
26+
convert -verbose -density 240 -background "#222" "$splashPortSvgFile" -resize 480x800 -gravity center -extent 480x800 "$dir/drawable-hdpi-splash-port.png"
27+
convert -verbose -density 320 -background "#222" "$splashPortSvgFile" -resize 720x1280 -gravity center -extent 720x1280 "$dir/drawable-xhdpi-splash-port.png"
28+
convert -verbose -density 480 -background "#222" "$splashPortSvgFile" -resize 960x1600 -gravity center -extent 960x1600 "$dir/drawable-xxhdpi-splash-port.png"
29+
convert -verbose -density 640 -background "#222" "$splashPortSvgFile" -resize 1280x1920 -gravity center -extent 1280x1920 "$dir/drawable-xxxhdpi-splash-port.png"
3030
# Splash screen (landscape):
31-
convert -verbose -density 120 -background none "$splashLandSvgFile" -resize 320x200 -gravity center -extent 320x200 "$dir/drawable-ldpi-splash-land.png"
32-
convert -verbose -density 160 -background none "$splashLandSvgFile" -resize 480x320 -gravity center -extent 480x320 "$dir/drawable-mdpi-splash-land.png"
33-
convert -verbose -density 240 -background none "$splashLandSvgFile" -resize 800x480 -gravity center -extent 800x480 "$dir/drawable-hdpi-splash-land.png"
34-
convert -verbose -density 320 -background none "$splashLandSvgFile" -resize 1280x720 -gravity center -extent 1280x720 "$dir/drawable-xhdpi-splash-land.png"
35-
convert -verbose -density 480 -background none "$splashLandSvgFile" -resize 1600x960 -gravity center -extent 1600x960 "$dir/drawable-xxhdpi-splash-land.png"
36-
convert -verbose -density 640 -background none "$splashLandSvgFile" -resize 1920x1280 -gravity center -extent 1920x1280 "$dir/drawable-xxxhdpi-splash-land.png"
31+
convert -verbose -density 120 -background "#222" "$splashLandSvgFile" -resize 320x200 -gravity center -extent 320x200 "$dir/drawable-ldpi-splash-land.png"
32+
convert -verbose -density 160 -background "#222" "$splashLandSvgFile" -resize 480x320 -gravity center -extent 480x320 "$dir/drawable-mdpi-splash-land.png"
33+
convert -verbose -density 240 -background "#222" "$splashLandSvgFile" -resize 800x480 -gravity center -extent 800x480 "$dir/drawable-hdpi-splash-land.png"
34+
convert -verbose -density 320 -background "#222" "$splashLandSvgFile" -resize 1280x720 -gravity center -extent 1280x720 "$dir/drawable-xhdpi-splash-land.png"
35+
convert -verbose -density 480 -background "#222" "$splashLandSvgFile" -resize 1600x960 -gravity center -extent 1600x960 "$dir/drawable-xxhdpi-splash-land.png"
36+
convert -verbose -density 640 -background "#222" "$splashLandSvgFile" -resize 1920x1280 -gravity center -extent 1920x1280 "$dir/drawable-xxxhdpi-splash-land.png"
3737
echo 'Done'
0 Bytes
Loading
-404 Bytes
Loading
164 Bytes
Loading
0 Bytes
Loading
-99 Bytes
Loading
42 Bytes
Loading
0 Bytes
Loading
0 Bytes
Loading
0 Bytes
Loading
0 Bytes
Loading
0 Bytes
Loading
-780 Bytes
Loading
539 Bytes
Loading
0 Bytes
Loading
-952 Bytes
Loading
430 Bytes
Loading
0 Bytes
Loading
Loading
Loading

0 commit comments

Comments
 (0)