forked from danielpovlsen/ios-icons-launch-images-generator
-
Notifications
You must be signed in to change notification settings - Fork 6
/
CreateiOSLaunchImagesPortrait.sh
executable file
·22 lines (21 loc) · 1.42 KB
/
CreateiOSLaunchImagesPortrait.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# iPhone 3.5" @2x $*
sips -Z 960 -c 960 640 Default-Input.png --out Images.xcassets/LaunchImage.launchimage/Default640x960.png $*
# iPhone 3.5" @1x $*
sips -Z 480 Images.xcassets/LaunchImage.launchimage/Default640x960.png --out Images.xcassets/LaunchImage.launchimage/Default320x480.png $*
# iPhone 4.0" @2x $*
sips -Z 1136 -c 1136 640 Default-Input.png --out Images.xcassets/LaunchImage.launchimage/Default640x1136.png $*
# iPhone 5.5" @3x - landscape
sips -Z 2208 -c 1242 2208 Default-Input.png --out Images.xcassets/LaunchImage.launchimage/Default2208x1242.png $*
# iPhone 5.5" @3x - portrait
sips -Z 2208 -c 2208 1242 Default-Input.png --out Images.xcassets/LaunchImage.launchimage/Default1242x2208.png $*
# iPhone 4.7" @2x
sips -Z 1334 -c 1334 750 Default-Input.png --out Images.xcassets/LaunchImage.launchimage/Default750x1334.png $*
# iPad @2x - landscape $*
sips -Z 2048 Default-Input.png --out Images.xcassets/LaunchImage.launchimage/Default2048x1536.png $*
# iPad @2x - portrait $*
sips -Z 2048 Images.xcassets/LaunchImage.launchimage/Default2048x1536.png --out Images.xcassets/LaunchImage.launchimage/Default1536x2048.png $*
# iPad @1x - landscape $*
sips -Z 1024 Images.xcassets/LaunchImage.launchimage/Default2048x1536.png --out Images.xcassets/LaunchImage.launchimage/Default1024x768.png $*
# iPad @1x - portrait $*
sips -Z 1024 -c 1024 768 Default-Input.png --out Images.xcassets/LaunchImage.launchimage/Default768x1024.png $*