YLGIFImage
Async GIF image decoder and Image viewer supporting play GIF images. It just use very less memory.
Install / Use
/learn @liyong03/YLGIFImageREADME
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.
<img src="./YLGIFImageDemo/YLGIFImageDemo/joy.gif" align="middle" width="320" />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:
<img align="middle" src="./screenshot.png" width="320" />Thanks
Thanks to OLImageView! I referred a lot to this project, especially using CADisplayLink to play the animation.
Related Skills
openhue
340.5kControl Philips Hue lights and scenes via the OpenHue CLI.
sag
340.5kElevenLabs text-to-speech with mac-style say UX.
weather
340.5kGet current weather and forecasts via wttr.in or Open-Meteo
tweakcc
1.5kCustomize Claude Code's system prompts, create custom toolsets, input pattern highlighters, themes/thinking verbs/spinners, customize input box & user message styling, support AGENTS.md, unlock private/unreleased features, and much more. Supports both native/npm installs on all platforms.
