IOS app icon One-click Build

Source: Internet
Author: User
Tags imagemagick

With the length of seniority, find more and more lazy, for the tedious things, always want to do less, just like the app icon mentioned today, the usual practice is nothing more than two, one is to let the UI engineer to provide all the size of the icon, the UI engineer to give a large icon, their own narrowing, the method is to harm oneself and harm, Although the developer's workload is small, but once the icon adjustment, suffering the UI engineer, and tired developers (to replace their own icon); method Two, that is tired, open PS, resize the image, save, resize the image, save ..., today is finally unbearable, decided to write a script ios-icon-generator, below a brief introduction.

Environment preparation

It is a shell script that can be run directly in MacOSX Bash, it relies on a strong imagemagick, so before you use it, install ImageMagick

sudo brew install ImageMagick
Installation
git clone https://github.com/smallmuou/ios-icon-generatorcd ios-icon-generatorchmod 777 ios-icon-generator.sh
Run
Starnetdemacbook-pro:ios-icon-generator starnet$./ios-icon-generator.sh ~/downloads/1024.png ~/output[INFO] Generate itunesartwork.png ... [INFO] Generate [email protected] ... [INFO] Generate icon-small.png ... [INFO] Generate [email protected] ... [INFO] Generate [email protected] ... [INFO] Generate icon-small-40.png ... [INFO] Generate [email protected] ... [INFO] Generate [email protected] ... [INFO] Generate icon-60.png ... [INFO] Generate [email protected] ... [INFO] Generate [email protected] ... [INFO] Generate icon-76.png ... [INFO] Generate [email protected] ... [INFO] Generate icon.png ... [INFO] Generate [email protected] ... [INFO] Generate icon-72.png ... [INFO] Generate [email protected] ... [INFO] Generate icon-small-50.png ... [INFO] Generate [email protected] ... [INFO] Generate done.
Results
Starnetdemacbook-pro:ios-icon-generator starnet$ ls-l ~/output/total 288-rw-r--r--1 starnet Staff 1921 18 17:45 icon-60.png-rw-r--r--1 starnet Staff 4723 * * 17:45 [email protected]-rw-r--r--1 starnet Staff 6954   17:45 [email protected]-rw-r--r--1 starnet Staff 2210, 17:45 icon-72.png-rw-r--r--1 starnet Staff  5565 17:45 [email protected]-rw-r--r--1 starnet staff 2184 may 17:45 icon-76.png-rw-r--r--1 starnet Staff 5856 17:45 [email protected]-rw-r--r--1 starnet staff 1437, may 17:45 icon-small-40.png-rw-r-- r--1 starnet Staff 3267 * * 17:45 [email protected]-rw-r--r--1 starnet staff 4723 may 17:45 [EMAIL&NB sp;protected]-rw-r--r--1 starnet Staff 1674 * * 17:45 icon-small-50.png-rw-r--r--1 starnet Staff 3992 18   17:45 [email protected]-rw-r--r--1 starnet Staff 1168 the 17:45 icon-small.png-rw-r--r--1 starnet Staff 1786 17:45 [Email protected]-rw-r--r--1 starnet Staff 2393 * * 17:45 [email protected]-rw-r--r--1 starnet Staff 1828  17:45 icon.png-rw-r--r--1 starnet Staff 4491 * * 17:45 [email protected]-rw-r--r--1 starnet Staff 19995 17:45 itunesartwork.png-rw-r--r--1 starnet Staff 30653 (May) 17:45 [email protected]
Review

The script is very simple to use and needs to be welcomed by friends.

IOS app icon One-click Build

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.