Create Every iOS Icon For Your App With a Photoshop Script

来源:互联网 发布:java开源会员管理系统 编辑:程序博客网 时间:2024/06/05 03:13

When you create any kind of app that will go on Apple’s App Store, they require you to have an icon for your app. Well because of the number of different devices and resolutions out there, you’ll need multiple copies of this icon before submission. This script can do that for you in a few seconds!

What Are the Icons For?

Here is a chart that explains the current icons:

File NameSizeDevice(s)PurposeIcon.png57 x 57iPhone/iPod TouchHome Screen App IconIcon@2x.png114 x 114iPhone/iPod Touch
(Retina)Home Screen App IconIcon-72.png72 x 72iPadHome Screen App IconIcon-72@2x.png144 x 144iPad (Retina)Home Screen App IconIcon-Small.png29 x 29iPhone/iPod Touch, iPadSpotlight Search Results
and Settings
(Settings for iPad)Icon-Small@2x.png58 x 58iPhone/iPod Touch, iPad
(Retina)Spotlight Search Results
and Settings
(Settings for iPad)Icon-Small-50.png50 x 50iPadSpotlight Search ResultsIcon-Small-50@2x.png100 x 100iPad (Retina)Spotlight Search ResultsItunesArtwork
(no extension)512 x 512iPhone/iPod Touch/iPadApp StoreItunesArtwork@2x
(no extension)1024 x 1024iPhone/iPod Touch/iPadApp Store (Retina)

Requirements

In order to do this you’re going to need:

  • Photoshop
  • A square PNG image 1024×1024 or greater
  • The script itself which can be downloaded from here.

Usage

The script itself it just a text file with a funky extension that Adobe products understand. To use this in Photoshop you’re going to want to place it in the Photoshop scripts directory.

On Mac that’s usually located: Applications/Adobe Photoshop CS6/Presets/Scripts (Or whatever your version of Photoshop is)

Mac OS Photoshop Script Location

On Windows that’s usually located at: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Presets\Scripts

Windows Photoshop Script Location

One you place the file here, load up Photoshop and look under “File -> Scripts” and you should see “Create iOS Icons”

Here is a video showing how it works in action:

Final Notes

The original script was created by Matt Di Pasquale who shared it on GitHub 2 years ago. I added some extra checks, a couple missing icons, and the ability to output to a file.

If you find this script useful, please let me know! Feel free to “fork” it, as they say in GitHub land. I’m sure this could also be automated to be part of the Xcode build process as well, but I’ll leave that as a project for another day. ;)

0 0
原创粉丝点击