/iOS-Default-Images-Generator

Script to generate 'App Icons' and 'App Launch (Default) Images'

Primary LanguageShellMIT LicenseMIT

iOS-Default-Images-Generator

Script to generate 'App Icons' and 'App Launch (Default) Images'

Prepare

This script needs convert command. Please install ImageMagick like bellow.

$ brew install imagemagick

Usage

usage: ./generator.sh src_image bg_color [dst_dir]

options

  • src_image: 'App Icons' source file. (1024x1024 size png)
  • bg_color: Background collor of 'App Launch (Default) Images'. You can set value like this.
  • dst_dir: Destination directory for images (optional).

Example

$ ./generator.sh d_1024px.png "#FF4981"

Above command generates:

.
├── README.md
├── d_1024px.png
├── dst
│   ├── icon
│   │   ├── Icon-60.png
│   │   ├── Icon-60@2x.png
│   │   ├── Icon-72.png
│   │   ├── Icon-72@2x.png
│   │   ├── Icon-76.png
│   │   ├── Icon-76@2x.png
│   │   ├── Icon-Small-40.png
│   │   ├── Icon-Small-40@2x.png
│   │   ├── Icon-Small-50.png
│   │   ├── Icon-Small-50@2x.png
│   │   ├── Icon-Small.png
│   │   ├── Icon-Small@2x.png
│   │   ├── Icon.png
│   │   ├── Icon@2x.png
│   │   ├── iTunesArtwork.png
│   │   └── iTunesArtwork@2x.png
│   └── screen
│       ├── Default-568h@2x~iphone.png
│       ├── Default-Landscape@2x~iPad.png
│       ├── Default-Landscape~iPad.png
│       ├── Default-Portrait@2x~iPad.png
│       ├── Default-Portrait~iPad.png
│       ├── Default@2x~iphone.png
│       └── Default~iphone.png
└── generator.sh

References