/APNGImageSerialization

a warpper of APNG support for iOS

Primary LanguageObjective-CMIT LicenseMIT

APNGImageSerialization

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Xcode 7+
  • iOS 8+

Usage

Decode

self.imageView.image = [UIImage animatedImageNamed:@"clock"];

Encode

NSData *data = UIImageAPNGRepresentation(image);
[data writeToFile:path atomically:YES];

Installation

APNGImageSerialization is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "APNGImageSerialization"

Author

Ricky Tan, ricky.tan.xin@gmail.com

License

APNGImageSerialization is available under the MIT license. See the LICENSE file for more info.