2019-01-30 05:10:51 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
BRANDING_ROOT=https://raw.githubusercontent.com/jellyfin/jellyfin-ux/master/branding/SVG
|
|
|
|
|
|
|
|
ICON_SOURCE=icon-transparent.svg
|
|
|
|
BANNER_SOURCE=banner-dark.svg
|
|
|
|
|
|
|
|
OUTPUT_DIR=./images
|
|
|
|
|
2019-04-29 04:00:53 +00:00
|
|
|
[ ! -d $OUTPUT_DIR ] && mkdir -p $OUTPUT_DIR
|
2019-04-27 14:44:14 +00:00
|
|
|
|
2019-01-30 05:10:51 +00:00
|
|
|
# Don't need to keep re-downloading things we already have
|
|
|
|
if [ ! -e $ICON_SOURCE ]; then
|
|
|
|
wget $BRANDING_ROOT/$ICON_SOURCE > /dev/null
|
|
|
|
wget $BRANDING_ROOT/$BANNER_SOURCE > /dev/null
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Channel Posters
|
2019-04-29 16:11:45 +00:00
|
|
|
convert -background "#000b25" -gravity center -scale 535x400 -extent 540x405 $BANNER_SOURCE $OUTPUT_DIR/channel-poster_fhd.png
|
|
|
|
convert -background "#000b25" -gravity center -scale 275x205 -extent 280x210 $BANNER_SOURCE $OUTPUT_DIR/channel-poster_hd.png
|
|
|
|
convert -background "#000b25" -gravity center -scale 182x135 -extent 187x140 $BANNER_SOURCE $OUTPUT_DIR/channel-poster_sd.png
|
2019-01-30 05:10:51 +00:00
|
|
|
|
2019-03-13 02:09:17 +00:00
|
|
|
# Overhang icon
|
|
|
|
convert -background none -gravity center -scale 1000x48 -extent 180x48 $BANNER_SOURCE $OUTPUT_DIR/logo.png
|
|
|
|
|
2019-01-30 05:10:51 +00:00
|
|
|
# Splash screens
|
|
|
|
convert -background "#000b25" -gravity center -scale 540x540 -extent 1920x1080 $BANNER_SOURCE $OUTPUT_DIR/splash-screen_fhd.jpg
|
|
|
|
convert -background "#000b25" -gravity center -scale 360x360 -extent 1280x720 $BANNER_SOURCE $OUTPUT_DIR/splash-screen_hd.jpg
|
|
|
|
convert -background "#000b25" -gravity center -scale 240x240 -extent 720x480 $BANNER_SOURCE $OUTPUT_DIR/splash-screen_sd.jpg
|
|
|
|
|
|
|
|
# Figure out when we want to clean up after ourselves
|
|
|
|
if [ "$skip" = "true" ]; then
|
|
|
|
rm $ICON_SOURCE
|
|
|
|
rm $BANNER_SOURCE
|
|
|
|
fi
|