Giter Club home page Giter Club logo

ios-icon-generator's Introduction

iOS/macOS/watchOS APP ICONS Generator

Description

ios-icon-generator is a shell script which aim to generate iOS/macOS/watchOS APP icons easier and simply. image

VERSION: 2.0.0
USAGE:
    ./ios-icon-generator.sh srcfile dstpath

DESCRIPTION:
    This script aim to generate iOS/macOS/watchOS APP icons easier and simply.

    srcfile - The source png image. Preferably above 1024x1024
    dstpath - The destination path where the icons generate to.

AUTHOR:
    smallmuou

EXAMPLE:
    ./ios-icon-generator.sh 1024.png ~/123

Usage

  1. Clone
git clone https://github.com/smallmuou/ios-icon-generator
cd ios-icon-generator
chmod 777 ios-icon-generator.sh
  1. Run
smou:ios-icon-generator $ ./ios-icon-generator.sh 1024.png ~/output/
[INFO] Generate Icon-16.png ...
[INFO] Generate [email protected] ...
[INFO] Generate Icon-32.png ...
[INFO] Generate [email protected] ...
[INFO] Generate Icon-128.png ...
[INFO] Generate [email protected] ...
[INFO] Generate Icon-256.png ...
[INFO] Generate [email protected] ...
[INFO] Generate Icon-512.png ...
[INFO] Generate [email protected] ...
[INFO] Generate [email protected] ...
[INFO] Generate [email protected] ...
[INFO] Generate [email protected] ...
[INFO] Generate [email protected] ...
[INFO] Generate [email protected] ...
[INFO] Generate [email protected] ...
[INFO] Generate [email protected] ...
[INFO] Generate [email protected] ...
[INFO] Generate [email protected] ...
[INFO] Generate [email protected] ...
[INFO] Generate Icon-1024.png ...
[INFO] Generate [email protected] ...
[INFO] Generate [email protected] ...
[INFO] Generate [email protected] ...
[INFO] Generate [email protected] ...
[INFO] Generate [email protected] ...
[INFO] Generate [email protected] ...
[INFO] Generate [email protected] ...
[INFO] Congratulation. All icons for iOS/macOS/watchOS APP are generate to the directory: /Users/smou/output/.

PS: You can find out the icons in ~/output directory.

Refer

History

  • 2.0.0

    • Update iOS icons size
    • Support macOS icons size
    • Support watchOS icons size
    • Remove ImageMagick Dependency
    • Update code structure for add size more easy.
  • 1.0.0

    • Generate all size icons for iPhone and iPad.

License

This script follow MIT license.

Contact

If you have any question with using it, you can email to me. My email is: [email protected]

ios-icon-generator's People

Contributors

lifeisfoo avatar nidegen avatar smallmuou avatar sundance2000 avatar wolever avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ios-icon-generator's Issues

on new macOS 10.14 does not work

I am getting this error:
-e [ERROR] The ImageMagick is not installed. Please use brew to install it first.

However I already install ImageMagick

Anything i can try

can u generate the content json

in order to make this generate fully easy to work. Are there any plans to generate the content .json to do that? the format is like this

{
  "images" : [
    {
      "size" : "20x20",
      "idiom" : "iphone",
      "filename" : "[email protected]",
      "scale" : "2x"
    },
    {
      "size" : "20x20",
      "idiom" : "iphone",
      "filename" : "[email protected]",
      "scale" : "3x"
    },
    {
      "size" : "29x29",
      "idiom" : "iphone",
      "filename" : "[email protected]",
      "scale" : "1x"
    },
    {
      "size" : "29x29",
      "idiom" : "iphone",
      "filename" : "[email protected]",
      "scale" : "2x"
    },
    {
      "size" : "29x29",
      "idiom" : "iphone",
      "filename" : "[email protected]",
      "scale" : "3x"
    },
    {
      "size" : "40x40",
      "idiom" : "iphone",
      "filename" : "[email protected]",
      "scale" : "2x"
    },
    {
      "size" : "40x40",
      "idiom" : "iphone",
      "filename" : "[email protected]",
      "scale" : "3x"
    },
    {
      "size" : "57x57",
      "idiom" : "iphone",
      "filename" : "[email protected]",
      "scale" : "1x"
    },
    {
      "size" : "57x57",
      "idiom" : "iphone",
      "filename" : "[email protected]",
      "scale" : "2x"
    },
    {
      "size" : "60x60",
      "idiom" : "iphone",
      "filename" : "[email protected]",
      "scale" : "2x"
    },
    {
      "size" : "60x60",
      "idiom" : "iphone",
      "filename" : "[email protected]",
      "scale" : "3x"
    },
    {
      "size" : "20x20",
      "idiom" : "ipad",
      "filename" : "Icon-20.png",
      "scale" : "1x"
    },
    {
      "size" : "20x20",
      "idiom" : "ipad",
      "filename" : "[email protected]",
      "scale" : "2x"
    },
    {
      "size" : "29x29",
      "idiom" : "ipad",
      "filename" : "[email protected]",
      "scale" : "1x"
    },
    {
      "size" : "29x29",
      "idiom" : "ipad",
      "filename" : "[email protected]",
      "scale" : "2x"
    },
    {
      "size" : "40x40",
      "idiom" : "ipad",
      "filename" : "[email protected]",
      "scale" : "1x"
    },
    {
      "size" : "40x40",
      "idiom" : "ipad",
      "filename" : "[email protected]",
      "scale" : "2x"
    },
    {
      "size" : "76x76",
      "idiom" : "ipad",
      "filename" : "[email protected]",
      "scale" : "1x"
    },
    {
      "size" : "76x76",
      "idiom" : "ipad",
      "filename" : "[email protected]",
      "scale" : "2x"
    },
    {
      "size" : "83.5x83.5",
      "idiom" : "ipad",
      "filename" : "[email protected]",
      "scale" : "2x"
    },
    {
      "size" : "40x40",
      "idiom" : "iphone",
      "filename" : "[email protected]",
      "scale" : "1x"
    },
    {
      "size" : "57x57",
      "idiom" : "iphone",
      "filename" : "[email protected]",
      "scale" : "3x"
    },
    {
      "size" : "60x60",
      "idiom" : "iphone",
      "filename" : "[email protected]",
      "scale" : "1x"
    },
    {
      "size" : "76x76",
      "idiom" : "iphone",
      "filename" : "[email protected]",
      "scale" : "1x"
    },
    {
      "size" : "76x76",
      "idiom" : "ipad",
      "filename" : "[email protected]",
      "scale" : "3x"
    }
  ],
  "info" : {
    "version" : 1,
    "author" : "xcode"
  }
}

Missing some new icon sizes.

Here's my updated list that fits the new xcode 10.1's Appicon list.

sizes_mapper=`cat << EOF
Icon-16         16
Icon-16@2x      32
Icon-32         32
Icon-32@2x      64
Icon-128        128
Icon-128@2x     256
Icon-256        256
Icon-256@2x     512
Icon-512        512
Icon-512@2x     1024
Icon-20      20
Icon-20@2x      40
Icon-20@3x      60
Icon-29      29
Icon-29@2x      58
Icon-29@3x      87
Icon-40      40
Icon-40@2x      80
Icon-50      50
Icon-50@2x      100
Icon-57      57
Icon-57@2x      114
Icon-40@3x      120
Icon-60@2x      120
Icon-60@3x      180
Icon-72      72
Icon-72@2x      144
Icon-76      76
Icon-76@2x      152
Icon-83.5@2x    167
Icon-1024       1024
Icon-24@2x      48
Icon-27.5@2x    55
Icon-86@2x      172
Icon-98@2x      196
Icon-108@2x     216
Icon-44@2x      88
Icon-50      50
Icon-50@2x      100
EOF`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.