Resize iOS Icons

When you release your app, you are required to provide your app’s icon in a lot of different sizes.  I had downloaded a program (called Prepo) that resized my icons to all the appropriate sizes, but now with stickers and other message extensions we need a whole new list of icons sizes.

I had used sips before to mass-resize everything in a folder, and I found code online  to resize icons to all the original iOS icons sizes.  Below is what I got when I tweaked it a little to work for the new message icons sizes.  This can easily be changed to whatever sizes you need.

if [ $# -gt 0 ]; then
	sips $1 -z 90 120 --out 60x45@2x.png
        sips $1 -z 135 180 --out 60x45@3x.png
	sips $1 -z 100 134 --out 67x50@2x.png
	sips $1 -z 110 148 --out 74x55@2x.png
	sips $1 -z 40 54 --out 27x20@2x.png
        sips $1 -z 60 81 --out 27x20@3x.png
	sips $1 -z 48 64 --out 32x24@2x.png
        sips $1 -z 72 96 --out 32x24@3x.png
	echo "Done."
    echo "You must provide the name of an image file to process."

So how do you use it?  Well that’s pretty easy!

First, save the code above to a file.  Mine is called

Next, open Terminal (it’s in your applications, in the utilities folder.)  Now you need to change to the directory that your file is saved in.  I tend to work on my desktop and then move files to folders later when I’m done.  You change directory by typing cd so I would type:

cd desktop

Now you run the script.

./ /Users/angela/Desktop/sites/goat.png

Notice the ./ before my script’s name, and the path to the graphic file after it.  You don’t have to type out the entire path to your graphic if you don’t want, after typing the ./ and a [space] you can drag and drop the file into terminal and it will automatically insert the path.

All the icon files will be saved to the same place as your file, in my case the desktop.

Hello world!

Over the years I have started (and eventually abandoned) a plethora of blogs.  Maybe it was because I tried to stick to a theme and lost interest.  Maybe life just got to busy.  Anyway… here we are again!  Here’s hoping to a long lasting blog… Hello Internet 🙂

Hello, I'm Ana (short for Angela.) I am a mother of four, programmer, gamer, vegetarian, trekkie, nerd, novice meditator, and science enthusiast. I like raspberries, tap dance, and my MacBook. And I write this blog. I hope you enjoy reading it.