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.
Submit A Resource
Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?
You can submit the url here.
The resources we feel will appeal to our readers the most will be posted on the front page.