Library Adding Support For The .Webp Image Format To UIImage And Convenient Encoding/Decoding Methods

I’ve mentioned some tools and libraries for reducing the size of images in your app such as the Wasted tool that optimizes images within a bundle, and a tool and library providing support for a custom format combining the benefits of a JPG with a PNG file.

Another way to save on image size is to use the .webp format from Google which can provide significant image size reduction, and is supported by web browsers, but is not natively supported within the iOS SDK.

Here’s an open source library from Matt Thompson that provides suppport for using .webp images called WebPImageSerialization.

WebPImageSerialization uses method swizzling to allow you to use the webp image format just as if it were any other format native image format along with methods allowing you to serialize and deserialize .webp data.

You can find WebPImageSerialization on Github here.

An easy way to support the .webp image format.

FacebookTwitterDiggStumbleUponGoogle Plus

Original article: Library Adding Support For The .Webp Image Format To UIImage And Convenient Encoding/Decoding Methods

©2014 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 *