{"id":1433,"url":"https://github.com/khaledmtaha/XAnimatedImage","last_synced_at":"2025-07-31T12:33:26.682Z","repository":{"id":215156345,"uuid":"47119675","full_name":"khaledmtaha/XAnimatedImage","owner":"khaledmtaha","description":"XAnimatedImage is a performant animated GIF engine for iOS written in Swift based on FLAnimatedImage","archived":false,"fork":false,"pushed_at":"2016-05-11T10:48:55.000Z","size":21350,"stargazers_count":555,"open_issues_count":7,"forks_count":31,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-08-15T00:19:50.838Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/khaledmtaha.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2015-11-30T13:19:51.000Z","updated_at":"2024-06-14T18:49:00.000Z","dependencies_parsed_at":"2024-01-05T20:17:17.610Z","dependency_job_id":null,"html_url":"https://github.com/khaledmtaha/XAnimatedImage","commit_stats":null,"previous_names":["khaledmtaha/xanimatedimage"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khaledmtaha%2FXAnimatedImage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khaledmtaha%2FXAnimatedImage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khaledmtaha%2FXAnimatedImage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khaledmtaha%2FXAnimatedImage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khaledmtaha","download_url":"https://codeload.github.com/khaledmtaha/XAnimatedImage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228248380,"owners_count":17891447,"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","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.366Z","updated_at":"2024-12-05T06:31:14.611Z","avatar_url":"https://github.com/khaledmtaha.png","language":"Swift","funding_links":[],"categories":["Media","Libs"],"sub_categories":["GIF","Other free courses","Images"],"readme":"\n![XAnimatedImage: Performant animated GIF engine for iOS (`FLAnimatedImage` in Swift)](http://i.imgur.com/UIGV69u.png)\n\n[![Platform](https://img.shields.io/badge/platform-ios-lightgrey.svg)]()\n\n`XAnimatedImage` is a performant animated GIF engine for iOS written in Swift based on [`FLAnimatedImage`](https://github.com/Flipboard/FLAnimatedImage). An illustration is shown below:\n\n![XAnimatedImage playing multiple GIFs](http://i.imgur.com/mU1zR3J.gif)\n\n## Features\n\n- [x] Plays multiple GIFs simultaneously with a playback speed comparable to desktop browsers\n- [x] Honors variable frame delays\n- [x] Eliminates delays or blocking during the first playback loop\n- [x] Interprets the frame delays of fast GIFs the same way modern browsers do\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/) describing the original [FLAnimatedImage](https://github.com/Flipboard/FLAnimatedImage) repo is a great place to start; also see the *To Do* section below)\n\n## Requirements\n\n- iOS 7.1+ \n- Xcode 7.1+\n\n## Installation\n\n`XAnimatedImage`, like it's original counterpart [`FLAnimatedImage`](https://github.com/Flipboard/FLAnimatedImage), is a well encapsulated drop-in component. Simply replace your `UIImageView` instances with instances of `XAnimatedImageView` to get animated GIF support. There is no central cache or state to manage.\n\n### Manually\n\nYou can integrate XAnimatedImage into your project manually.\nYou can do it by copying the \"Classes\" folder in your project (make sure that \"Create groups\" option is selected).\n\n### Other\n\nOther installation methods are currently being integrated into the project. Currently, this repository supports only manual installation. Planned, future installation methods will include:\n\n- CocoaPods\n- Carthage\n\n##Usage\n\n```swift\nvar animatedImage = XAnimatedImage(initWithAnimatedGIFData: NSData(contentsOfURL: NSURL(fileURLWithPath: NSBundle.mainBundle().pathForResource(\"example\", ofType: \"gif\")!))!)\nvar animatedImageView = XAnimatedImageView()\nanimatedImageView.animatedImage = animatedImage\nanimatedImageView.frame = CGRectMake(0,0,100,100)\nself.view.addSubview(animatedImageView)\n```\n\n##To Do\n\n- Support other animated image formats such as APNG or WebP\n- Integration into network libraries and image caches\n- Investigate whether `FLAnimatedImage` should become a `UIImage` subclass\n- Smarter buffering\n- Investigate the usage of `GPUImage` for less CPU intensive image processing.\n- Support `CocoaPods` and `Carthage` for installation methods.\n\n##Contributions\n\nThis project owes most in part to the original [`FLAnimatedImage`](https://github.com/Flipboard/FLAnimatedImage) [contributors](https://github.com/Flipboard/FLAnimatedImage/graphs/contributors) namely Raphael Schaad ([github](https://github.com/raphaelschaad) | [@raphaelschaad](https://twitter.com/raphaelschaad)). \n\nIf there any issues to be directed at me, you can reach me, Khaled Taha, [@iamktothed](https://twitter.com/iamktothed). \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhaledmtaha%2FXAnimatedImage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhaledmtaha%2FXAnimatedImage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhaledmtaha%2FXAnimatedImage/lists"}