Skip to content
Async GIF image decoder and Image viewer supporting play GIF images. It just use very less memory.
Objective-C Swift Ruby
Branch: master
Clone or download
liyong03 Merge pull request #24 from gfosco/patch-1
Improve behavior for path resolution to resources
Latest commit 4b95371 Aug 13, 2016
Type Name Latest commit message Commit time
Failed to load latest commit information.
YLGIFImage.xcodeproj add podspec Mar 31, 2014
YLGIFImageDemo remove landscape for project Sep 17, 2014
YLGIFImageInSwiftProjectDemo add demo for using YLGIFImage in Swift Jun 15, 2014
LICENSE add swift implementation link to readme Jun 10, 2014
screenshot.png update readme Mar 13, 2014


Asynchronized GIF image class and Image viewer supporting play/stop GIF images.

It just use very less memory. Following GIF usually will cost almost 600MB memory if it is fully decoded (800x600x389x4 Bytes), but using YLGIFImage, it just use about 30MB memory.

For this gif file, iOS Pinterest also will crash, but using YLGIFImage, it won't!

####Swift support I created another project to implement YLGIFImage using swift, it's called YLGIFImage-Swift.

####Get Start Using CocoaPods to get start, you can add following line to your Podfile:

pod 'YLGIFImage'

####Using it For using YLGIFImage, it's very simple:

YLImageView* imageView = [[YLImageView alloc] initWithFrame:CGRectMake(0, 160, 320, 240)];
[self.view addSubview:imageView];
imageView.image = [YLGIFImage imageNamed:@"joy.gif"];

Here is the demo looks like:


Thanks to OLImageView! I referred a lot to this project, especially using CADisplayLink to play the animation.

You can’t perform that action at this time.