Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liyong03/YLGIFImage
Async GIF image decoder and Image viewer supporting play GIF images. It just use very less memory.
https://github.com/liyong03/YLGIFImage
Last synced: 6 days ago
JSON representation
Async GIF image decoder and Image viewer supporting play GIF images. It just use very less memory.
- Host: GitHub
- URL: https://github.com/liyong03/YLGIFImage
- Owner: liyong03
- License: mit
- Created: 2014-03-02T09:20:31.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-12-19T01:04:07.000Z (almost 4 years ago)
- Last Synced: 2024-04-04T08:45:23.699Z (8 months ago)
- Language: Objective-C
- Size: 3.16 MB
- Stars: 1,770
- Watchers: 43
- Forks: 199
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - YLGIFImage - Async GIF image decoder and Image viewer supporting play GIF images. It just use very less memory. (Media / GIF)
- awesome-ios-animation - YLGIFImage - Async GIF image decoder and Image viewer supporting play GIF images. It just use very less memory. (Uncategorized / Uncategorized)
- awesome-ios-star - YLGIFImage - Async GIF image decoder and Image viewer supporting play GIF images. It just use very less memory. (Media / GIF)
README
YLGIFImage
==========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](https://github.com/liyong03/YLGIFImage-Swift).####Get Start
Using [CocoaPods](http://cocoapods.org/) 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
==========
Thanks to [OLImageView](https://github.com/ondalabs/OLImageView)! I referred a lot to this project, especially using CADisplayLink to play the animation.