Latest 0.2.1
Homepage https://github.com/mattt/AnimatedGIFImageSerialization
License MIT
Platforms ios 5.0, requires ARC
Authors

AnimatedGIFImageSerialization

AnimatedGIFImageSerialization decodes an UIImage from Animated GIFs image data, following the API conventions of Foundation’s NSJSONSerialization class.

As it ships with iOS, UIImage does not support decoding animated gifs into an animated UIImage. But so long as ANIMATED_GIF_NO_UIIMAGE_INITIALIZER_SWIZZLING is not #define‘d, the this library will swizzle the UIImage initializers to automatically support animated GIFs.

Usage

Decoding

UIImageView *imageView = ...;
imageView.image = [UIImage imageNamed:@"animated.gif"];

Animated GIF

Encoding

UIImage *image = ...;
NSData *data = [AnimatedGIFImageSerialization animatedGIFDataWithImage:image
                                                              duration:1.0
                                                             loopCount:1
                                                                 error:nil];

Contact

Mattt Thompson

License

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

Latest podspec

{
    "name": "AnimatedGIFImageSerialization-fork",
    "version": "0.2.1",
    "license": "MIT",
    "summary": "Decodes UIImage sequences from Animated GIFs.",
    "homepage": "https://github.com/mattt/AnimatedGIFImageSerialization",
    "social_media_url": "https://twitter.com/mattt",
    "authors": {
        "Mattt Thompson": "[email protected]"
    },
    "source": {
        "git": "https://github.com/hp-sam/AnimatedGIFImageSerialization.git",
        "tag": "0.2.1"
    },
    "source_files": "AnimatedGIFImageSerialization",
    "requires_arc": true,
    "ios": {
        "frameworks": [
            "MobileCoreServices",
            "ImageIO",
            "CoreGraphics"
        ]
    },
    "platforms": {
        "ios": "5.0"
    }
}

Pin It on Pinterest

Share This