Swiftpack.co - Package - rickytan/APNGImageSerialization

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

rickytan/APNGImageSerialization

a warpper of APNG support for iOS

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.

Github

link
Stars: 7
Last commit: 2 weeks ago