Skip to content

iOS Icon Generator (1x, @2x, @3x). Generates the 3 scaled versions of an icon image using a Bash Script.

Notifications You must be signed in to change notification settings

Thisura98/ios-icon-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

iOS Icon Generator

Convert images to scaled iOS Assets in a flash (no dependencies required)!

Demonstration

Installation

Makes the file executable and copies it to /usr/local/bin so it can be accessed from anywhere.

  1. Clone this repo.
  2. cd ios-icon-generator
  3. chmod +x igen
  4. cp igen /usr/local/bin/igen

Example

Convert sunset.jpg file into icon.jpg, icon@2x.jpg & icon@3x.jpg.

Command

igen sunset.jpg icon.jpg

Output

Using 'sunset.jpg' to convert...
(3/3) Files Created Successfully!
1. icon.jpg = 300 x 300
2. icon@2x.jpg = 603.00 x 603.00
3. icon@3x.jpg = 900 x 900

Note

Omit the second parameter (icon.jpg) to use the same name.

Finder

Contributions

Rename igen to igen.sh and make your edits. The igen file is Shell Script.

Pull requests are welcome.

Requirements (inbuilt in macOS)

  • sips - Scriptable Image Processing System
  • bc - Basic Calculator
  • sed - Stream Editor

About

iOS Icon Generator (1x, @2x, @3x). Generates the 3 scaled versions of an icon image using a Bash Script.

Topics

Resources

Stars

Watchers

Forks