
You have finished all the code for your app, integrated the design, tagged everything for analytics, now you’re ready to release to the App Store right? Wrong. One of the last steps before finally releasing your new app is to optimize your images. This is important for two reasons. The first, it will slightly help the performance of your app. Since your views will be a little smaller they’ll load a little faster. You will especially notice this if you are supporting older devices (i.e. iPad 1st Gen and iPhone 4). Also if you have many assets on a view it should respond a little better. The second reason to optimize your images is the crucial 50 MB limit Apple sets for downloads over cellular networks. If your app is over 50 MB users will not be able to download your app unless they are on a Wi-Fi network. This is a barrier that you can’t afford, anything stopping a user from downloading your app may cost you that download if they forget about your app or move onto the one next to it that’s similar in the store.
ImageOptim
The tool that I use is ImageOptim, it’s a really easy tool to use and it’s FREE! ImageOptim optimizes images — so they take up less disk space and load faster — by finding best compression parameters and by removing unnecessary comments and color profiles. It handles PNG, JPEG and GIF animations. Most importantly it does so without affecting the image quality.
The interface to ImageOptium is very minimal and simple. Drag images onto its window or dock icon, or click on the plus (+) button to select images from a standard open dialog box. The app immediately starts optimizing the images, using one or more of a slew of command-line image optimization tools: PNGOUT, AdvPNG, Pngcrush, extended OptiPNG, JpegOptim, jpegrescan, jpegtran, and Gifsicle. Beside each file name you’ll see the file size (in bytes), and the percentage by which the file size was shrunk from the original and at the bottom it will tell you the total amount of savings for all the images you optimize at once.
ShrinkIt
Another great tool for optimizing images is ShrinkIt. The difference between ImageOptim and ShrinkIt is ShrinkIt allows you to optimize PDFs. If you have a magazine app or a PDF reader it will be quicker for users to download your PDFs if they are smaller.
ShrinkIt is a simple, small tool (for Mac OS X Snow Leopard) that will automate the process of stripping needless metadata from PDFs by re-saving them using Apple’s PDF processor. This is 100% lossless – it’s not compressing anything, just removing unneeded data. Simply drop a bunch of files onto it to have it do its magic. The original files will be renamed with the prefix “_org_” for safety, but you’ll probably just want to delete them.
Both of the apps above are great for reducing the size of your images and PDFs without losing any quality, so why wouldn’t you optimize?