{"id":1430,"url":"https://github.com/Flipboard/FLAnimatedImage","last_synced_at":"2025-08-02T04:31:05.977Z","repository":{"id":17184103,"uuid":"19951534","full_name":"Flipboard/FLAnimatedImage","owner":"Flipboard","description":"Performant animated GIF engine for iOS","archived":false,"fork":false,"pushed_at":"2024-03-21T10:45:04.000Z","size":4079,"stargazers_count":7960,"open_issues_count":84,"forks_count":1214,"subscribers_count":223,"default_branch":"master","last_synced_at":"2025-08-01T20:44:50.174Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Flipboard.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-05-19T17:44:51.000Z","updated_at":"2025-07-28T13:49:41.000Z","dependencies_parsed_at":"2024-06-18T10:37:44.565Z","dependency_job_id":"e19d0974-1e26-468f-a1c7-1212d65ded9e","html_url":"https://github.com/Flipboard/FLAnimatedImage","commit_stats":{"total_commits":219,"total_committers":34,"mean_commits":"6.4411764705882355","dds":0.5296803652968036,"last_synced_commit":"d4f07b6f164d53c1212c3e54d6460738b1981e9f"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/Flipboard/FLAnimatedImage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flipboard%2FFLAnimatedImage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flipboard%2FFLAnimatedImage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flipboard%2FFLAnimatedImage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flipboard%2FFLAnimatedImage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Flipboard","download_url":"https://codeload.github.com/Flipboard/FLAnimatedImage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flipboard%2FFLAnimatedImage/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268310875,"owners_count":24230199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:15:46.291Z","updated_at":"2025-08-02T04:31:05.492Z","avatar_url":"https://github.com/Flipboard.png","language":"Objective-C","readme":"# [FLAnimatedImage](https://github.com/Flipboard/FLAnimatedImage) \u0026middot; [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/Flipboard/FLAnimatedImage/blob/master/LICENSE) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/Flipboard/FLAnimatedImage/pulls)\n\nFLAnimatedImage is a performant animated GIF engine for iOS:\n\n- Plays multiple GIFs simultaneously with a playback speed comparable to desktop browsers\n- Honors variable frame delays\n- Behaves gracefully under memory pressure\n- Eliminates delays or blocking during the first playback loop\n- Interprets the frame delays of fast GIFs the same way modern browsers do\n\nIt's a well-tested [component that powers all GIFs in Flipboard](http://engineering.flipboard.com/2014/05/animated-gif). To understand its behavior it comes with an interactive demo:\n\n![Flipboard playing multiple GIFs](https://github.com/Flipboard/FLAnimatedImage/raw/master/images/flanimatedimage-demo-player.gif)\n\n## Who is this for?\n\n- Apps that don't support animated GIFs yet\n- Apps that already support animated GIFs but want a higher performance solution\n- People who want to tinker with the code ([the corresponding blog post](http://engineering.flipboard.com/2014/05/animated-gif/) is a great place to start; also see the *To Do* section below)\n\n## Installation \u0026 Usage\n\nFLAnimatedImage is a well-encapsulated drop-in component. Simply replace your `UIImageView` instances with instances of `FLAnimatedImageView` to get animated GIF support. There is no central cache or state to manage.\n\nIf using CocoaPods, the quickest way to try it out is to type this on the command line:\n\n```shell\n$ pod try FLAnimatedImage\n```\n\nTo add it to your app, copy the two classes `FLAnimatedImage.h/.m` and `FLAnimatedImageView.h/.m` into your Xcode project or add via [CocoaPods](http://cocoapods.org) by adding this to your Podfile:\n\n```ruby\npod 'FLAnimatedImage', '~\u003e 1.0'\n```\n\nIf using [Carthage](https://github.com/Carthage/Carthage), add the following line into your `Cartfile`\n\n```\ngithub \"Flipboard/FLAnimatedImage\"\n```\n\nIf using [Swift Package Manager](https://github.com/apple/swift-package-manager), add the following to your `Package.swift` or add via XCode:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/Flipboard/FLAnimatedImage.git\", .upToNextMajor(from: \"1.0.16\"))\n],\ntargets: [\n    .target(name: \"TestProject\", dependencies: [\"FLAnimatedImage\"\"])\n]\n```\n\nIn your code, `#import \"FLAnimatedImage.h\"`, create an image from an animated GIF, and setup the image view to display it:\n\n```objective-c\nFLAnimatedImage *image = [FLAnimatedImage animatedImageWithGIFData:[NSData dataWithContentsOfURL:[NSURL URLWithString:@\"https://upload.wikimedia.org/wikipedia/commons/2/2c/Rotating_earth_%28large%29.gif\"]]];\nFLAnimatedImageView *imageView = [[FLAnimatedImageView alloc] init];\nimageView.animatedImage = image;\nimageView.frame = CGRectMake(0.0, 0.0, 100.0, 100.0);\n[self.view addSubview:imageView];\n```\n\nIt's flexible to integrate in your custom image loading stack and backwards compatible to iOS 9.\n\nIt uses ARC and the Apple frameworks `QuartzCore`, `ImageIO`, `MobileCoreServices`, and `CoreGraphics`.\n\nIt is capable of fine-grained logging. A block can be set on `FLAnimatedImage` that's invoked when logging occurs with various log levels via the `+setLogBlock:logLevel:` method. For example:\n\n```objective-c\n// Set up FLAnimatedImage logging.\n[FLAnimatedImage setLogBlock:^(NSString *logString, FLLogLevel logLevel) {\n    // Using NSLog\n    NSLog(@\"%@\", logString);\n\n    // ...or CocoaLumberjackLogger only logging warnings and errors\n    if (logLevel == FLLogLevelError) {\n        DDLogError(@\"%@\", logString);\n    } else if (logLevel == FLLogLevelWarn) {\n        DDLogWarn(@\"%@\", logString);\n    }\n} logLevel:FLLogLevelWarn];\n```\n\nSince FLAnimatedImage is licensed under MIT, it's compatible with the terms of using it for any app on the App Store.\n\n## Release process\n1. Bump version in `FLAnimatedImage.podspec`, update CHANGES, and commit.\n2. Tag commit with `\u003e git tag -a \u003cVERSION\u003e -m \"\u003cVERSION\u003e\"` and `\u003e git push --tags`.\n3. [Submit Podspec to Trunk with](https://guides.cocoapods.org/making/specs-and-specs-repo.html#how-do-i-update-an-existing-pod) `\u003e pod trunk push FLAnimatedImage.podspec` ([ensure you're auth'ed](https://guides.cocoapods.org/making/getting-setup-with-trunk.html#getting-started)).\n## To Do\n- Support other animated image formats such as APNG or WebP (WebP support implemented [here](https://github.com/Flipboard/FLAnimatedImage/pull/86))\n- Integration into network libraries and image caches\n- Investigate whether `FLAnimatedImage` should become a `UIImage` subclass\n- Smarter buffering\n- Bring demo app to iPhone\n\nThis code has successfully shipped to many people as is, but please do come with your questions, issues and pull requests!\n\n## Select apps using FLAnimatedImage\n(alphabetically)\n\n- [Close-up](http://closeu.pe)\n- [Design Shots](https://itunes.apple.com/app/id792517951)\n- [Dropbox](https://www.dropbox.com)\n- [Dumpert](http://dumpert.nl)\n- [Ello](https://ello.co/)\n- [Facebook](https://facebook.com)\n- [Flipboard](https://flipboard.com)\n- [getGIF](https://itunes.apple.com/app/id964784701)\n- [Gifalicious](https://itunes.apple.com/us/app/gifalicious-see-your-gifs/id965346708?mt=8)\n- [HashPhotos](https://itunes.apple.com/app/id685784609)\n- [Instagram](https://www.instagram.com/)\n- [LiveBooth](http://www.liveboothapp.com)\n- [lWlVl Festival](http://lwlvl.com)\n- [Medium](https://medium.com)\n- [Pinterest](https://pinterest.com)\n- [Slack](https://slack.com/)\n- [Telegram](https://telegram.org/)\n- [Zip Code Finder](https://itunes.apple.com/app/id893031254)\n\nIf you're using FLAnimatedImage in your app, please open a PR to add it to this list!\n","funding_links":[],"categories":["Media","ImageView","Libraries","Objective-C","Objective-C  Stars 1000以内排名整理","Minor","UI Components","etc","iOS"],"sub_categories":["GIF","Objective-C","Image","Other free courses","FLAnimatedImage"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFlipboard%2FFLAnimatedImage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFlipboard%2FFLAnimatedImage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFlipboard%2FFLAnimatedImage/lists"}