iOS Library And Tool For Reducing PNG File Size With A Custom Image Format

Recently I mentioned a tool that goes through your Xcode projects and lists any unused image files.

PNG images are usually the culprit when it comes to a large app bundle size you might try using JPEGs.  Unfortunately JPG  files don’t contain transparencies.

Here’s a library and tool from Nick Lockwood that aims to help solve this problem called JPNG.  JPNG aims to provide the file size benefits of a JPEG with the alpha channel of a PNG.  JPNG does this by using a JPEG to store the image’s RGB data, with a PNG alpha channel.

The library even performs some method swizzling so you can load JPNG files using UIImage initWithContentsOfFile, initWithData, and imageNamed functions so you can get it working with minimal code changes.

The tool provides a simple command line syntax for converting your PNG images to JPNG.

You can find the JPNG library and tool on Github here.

Another tool for squeezing your app’s down to the smallest possible size.

DeliciousTwitterFacebookRedditLinkedInEmail

Original article: iOS Library And Tool For Reducing PNG File Size With A Custom Image Format

©2013 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *