AnimatedGIFImageSerialization
decodes an UIImage
from Animated GIFs image data, following the API conventions of Foundation's NSJSONSerialization
class.
Out of the box, UIImage
does not support decoding animated gifs into an animated UIImage
. So long as ANIMATED_GIF_NO_UIIMAGE_INITIALIZER_SWIZZLING
is not #define
'd, the this library will swizzle the UIImage
initializers to support animated GIFs.
UIImageView *imageView = ...;
imageView.image = [UIImage imageNamed:@"animated.gif"];
Mattt Thompson
AnimatedGIFImageSerialization is available under the MIT license. See the LICENSE file for more info.