{"id":1432,"url":"https://github.com/mattt/AnimatedGIFImageSerialization","last_synced_at":"2025-08-02T04:31:01.755Z","repository":{"id":15379528,"uuid":"18110950","full_name":"mattt/AnimatedGIFImageSerialization","owner":"mattt","description":"Complete Animated GIF Support for iOS, with Functions, NSJSONSerialization-style Class, and (Optional) UIImage Swizzling","archived":true,"fork":false,"pushed_at":"2019-07-06T14:55:26.000Z","size":547,"stargazers_count":1078,"open_issues_count":0,"forks_count":103,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-07-28T18:46:46.474Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mattt.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}},"created_at":"2014-03-25T18:06:31.000Z","updated_at":"2025-07-19T05:19:34.000Z","dependencies_parsed_at":"2022-08-25T13:30:25.497Z","dependency_job_id":null,"html_url":"https://github.com/mattt/AnimatedGIFImageSerialization","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/mattt/AnimatedGIFImageSerialization","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2FAnimatedGIFImageSerialization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2FAnimatedGIFImageSerialization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2FAnimatedGIFImageSerialization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2FAnimatedGIFImageSerialization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattt","download_url":"https://codeload.github.com/mattt/AnimatedGIFImageSerialization/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2FAnimatedGIFImageSerialization/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268265524,"owners_count":24222518,"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.339Z","updated_at":"2025-08-02T04:31:01.362Z","avatar_url":"https://github.com/mattt.png","language":"Objective-C","readme":"# AnimatedGIFImageSerialization\n\n\u003e This library is no longer maintained. \n\u003e In iOS 13+ and macOS 10.15+, use [`CGAnimateImageAtURLWithBlock`](https://developer.apple.com/documentation/imageio/3333271-cganimateimageaturlwithblock) instead.\n\n`AnimatedGIFImageSerialization` decodes an `UIImage` from\n[Animated GIFs](http://en.wikipedia.org/wiki/Graphics_Interchange_Format),\nfollowing the API conventions of Foundation's `NSJSONSerialization` class.\n\nBy default, `UIImage` initializers can't decode animated images from GIF files.\nThis library uses swizzling to provide this functionality for you.\nTo opt out of this behavior,\nset `ANIMATED_GIF_NO_UIIMAGE_INITIALIZER_SWIZZLING` in your build environment.\nIf you're using CocoaPods,\nyou can add this build setting to your `Podfile`:\n\n```ruby\npost_install do |r|\n  r.pods_project.targets.each do |target|\n    if target.name == 'AnimatedGIFImageSerialization' then\n      target.build_configurations.each do |config|\n        config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||=\n          ['$(inherited)', 'ANIMATED_GIF_NO_UIIMAGE_INITIALIZER_SWIZZLING=1']\n      end\n    end\n  end\nend\n```\n\n## Usage\n\n### Decoding\n\n```objective-c\nUIImageView *imageView = ...;\nimageView.image = [UIImage imageNamed:@\"animated.gif\"];\n```\n\n![Animated GIF](https://raw.githubusercontent.com/mattt/AnimatedGIFImageSerialization/master/Example/Animated%20GIF%20Example/animated.gif)\n\n### Encoding\n\n```objective-c\nUIImage *image = ...;\nNSData *data = [AnimatedGIFImageSerialization animatedGIFDataWithImage:image\n                                                              duration:1.0\n                                                             loopCount:1\n                                                                 error:nil];\n```\n\n---\n\n## Contact\n\nMattt ([@mattt](https://twitter.com/mattt))\n\n## License\n\nAnimatedGIFImageSerialization is available under the MIT license.\nSee the LICENSE file for more info.\n","funding_links":[],"categories":["Media","Libraries"],"sub_categories":["GIF","Objective-C","Other free courses"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattt%2FAnimatedGIFImageSerialization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattt%2FAnimatedGIFImageSerialization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattt%2FAnimatedGIFImageSerialization/lists"}