/dev/trouble
Eric Roller's blog

Sunday, January 25, 2015

Automator Workflow to Scale iOS App Icons

For iOS development, it is necessary to provide a set of app icons of different sizes, all the way from a high-resolution icon for the AppStore to a tiny icon that will be used in Spotlight search results. The trouble is, how to create the icons, again, and again,…

Well, here’s how…

Starting off with a 1024 x 1024 pixels source image (in PNG format), one would have to scale it multiple times in an image editing tool, to export it into all the sizes. But can’t this be automated with AppleScript?

Well, yes, but it gets better: Use Automator !

I have set up this Automator workflow to create all icon images. It works like this:

  1. Launch the workflow in Automator and Run it.
  2. You will be prompted to select the 1024×1024 PNG source image.
  3. You will be prompted to select a destination folder.
  4. Wait…

When the workflow is finished, you will find these files in the output folder:

But wait, there’s more!

Are you missing an icon size? Just edit the workflow to fit your needs.