Created
December 29, 2017 18:37
-
-
Save larryaasen/c9fdea82824bb3e0b36d5b5c9a5026fd to your computer and use it in GitHub Desktop.
Generate the image files needed for a tvOS app.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# generate_tvos_images.sh | |
# Generate the image files needed for a tvOS app. These images are a solid color and can be used | |
# for initial TestFlight builds before branding is applied. | |
# This script uses ImageMagick: https://www.imagemagick.org/script/download.php | |
# Apple Human Interface Guidelines for tvOS: https://developer.apple.com/tvos/human-interface-guidelines/icons-and-images/app-icon/ | |
# Setup ImageMagick: since the default DYLD_LIBRARY_PATH variable is empty, set it here | |
export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib/" | |
# Setup icon color | |
COLOR=RoyalBlue3 | |
# Create - Home Screen Icons | |
convert -size 400x240 xc:$COLOR tvos_homescreeniconfront@1x.png | |
convert -size 800x480 xc:$COLOR tvos_homescreeniconfront@2x.png | |
convert -size 400x240 xc:$COLOR tvos_homescreeniconback@1x.png | |
convert -size 800x480 xc:$COLOR tvos_homescreeniconback@2x.png | |
# Create - App Store Icon | |
convert -size 1280x768 xc:$COLOR tvos_appstoreicon_front.png | |
convert -size 1280x768 xc:$COLOR tvos_appstoreicon_middle.png | |
convert -size 1280x768 xc:$COLOR tvos_appstoreicon_back.png | |
# Create - Launch Images | |
convert -size 1920x1080 xc:$COLOR tvos_launchimage@1x.png | |
convert -size 3840x2160 xc:$COLOR tvos_launchimage@2x.png | |
# Create - Top Shelf Images | |
convert -size 2320x720 xc:$COLOR tvos_topshelfimagewide@1x.png | |
convert -size 4640x1440 xc:$COLOR tvos_topshelfimagewide@2x.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment