The online home of John Pollard

Using JIMP to build an iOS icon resizer

Everytime I manually had to create some thumbnails for josiemccoy.co.uk, or a whole set of icons for an iOS app, I thought “next time I’ll write a script to automate this”.

Finally I got around to writing the script, which only took a few minutes which should save me, er, a few minutes each year.

Once I found the excellent JIMP package - a pure JavaScript image manipulation library - it was easy to write a couple of scripts to do exactly what I wanted.

The script to generate all the image sizes required for an iOS app is available on GitHub if you want to try it out yourself.