{"id":17690230,"url":"https://github.com/onmyway133/gifmagic","last_synced_at":"2025-05-07T14:12:55.665Z","repository":{"id":69038200,"uuid":"98981128","full_name":"onmyway133/GifMagic","owner":"onmyway133","description":"💈 Gif maker and extractor in Swift","archived":false,"fork":false,"pushed_at":"2020-05-12T21:32:12.000Z","size":32,"stargazers_count":48,"open_issues_count":1,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-07T14:12:45.514Z","etag":null,"topics":["compile","extract","frame","gif","modify","video"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onmyway133.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2017-08-01T08:58:54.000Z","updated_at":"2024-03-17T00:22:37.000Z","dependencies_parsed_at":"2024-07-22T14:31:21.497Z","dependency_job_id":null,"html_url":"https://github.com/onmyway133/GifMagic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmyway133%2FGifMagic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmyway133%2FGifMagic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmyway133%2FGifMagic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmyway133%2FGifMagic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onmyway133","download_url":"https://codeload.github.com/onmyway133/GifMagic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252892504,"owners_count":21820648,"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":["compile","extract","frame","gif","modify","video"],"created_at":"2024-10-24T11:50:17.071Z","updated_at":"2025-05-07T14:12:55.640Z","avatar_url":"https://github.com/onmyway133.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GifMagic\n\n❤️ Support my apps ❤️ \n\n- [Push Hero - pure Swift native macOS application to test push notifications](https://onmyway133.com/pushhero)\n- [PastePal - Pasteboard, note and shortcut manager](https://onmyway133.com/pastepal)\n- [Quick Check - smart todo manager](https://onmyway133.com/quickcheck)\n- [Alias - App and file shortcut manager](https://onmyway133.com/alias)\n- [My other apps](https://onmyway133.com/apps/)\n\n❤️❤️😇😍🤘❤️❤️\n\n[![CI Status](http://img.shields.io/travis/onmyway133/GifMagic.svg?style=flat)](https://travis-ci.org/onmyway133/GifMagic)\n[![Version](https://img.shields.io/cocoapods/v/GifMagic.svg?style=flat)](http://cocoadocs.org/docsets/GifMagic)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![License](https://img.shields.io/cocoapods/l/GifMagic.svg?style=flat)](http://cocoadocs.org/docsets/GifMagic)\n[![Platform](https://img.shields.io/cocoapods/p/GifMagic.svg?style=flat)](http://cocoadocs.org/docsets/GifMagic)\n![Swift](https://img.shields.io/badge/%20in-swift%203.0-orange.svg)\n\n## Encoder\n\n#### Encode images into gif file\n\n```swift\nlet url = Encoder().encode(images: images, frameDuration: 0.05)\n```\n\n## Decoder\n\n#### Decode gif file into images and get info\n\n```swift\nlet info = Decoder().decode(gifUrl: url)\n\ninfo.images\ninfo.frameDuration\ninfo.pixelWidth\ninfo.pixelHeight\n```\n\n#### Decode video file into images and get info\n\n```swift\nlet info = Decoder().decode(videoUrl: url)\n\ninfo.images\n```\n\n## Modifier\n\n#### Modify each frame within the gif\n\n```swift\nlet newGifUrl = Handler().modify(gifUrl: url, closure: { image in\n  // Handle image the way you want\n  return image\n})\n```\n\n## Installation\n\n**GifMagic** is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'GifMagic'\n```\n\n**GifMagic** is also available through [Carthage](https://github.com/Carthage/Carthage).\nTo install just write into your Cartfile:\n\n```ruby\ngithub \"onmyway133/GifMagic\"\n```\n\n**GifMagic** can also be installed manually. Just download and drop `Sources` folders in your project.\n\n## Author\n\nKhoa Pham, onmyway133@gmail.com\n\n## Contributing\n\nWe would love you to contribute to **GifMagic**, check the [CONTRIBUTING](https://github.com/onmyway133/GifMagic/blob/master/CONTRIBUTING.md) file for more info.\n\n## License\n\n**GifMagic** is available under the MIT license. See the [LICENSE](https://github.com/onmyway133/GifMagic/blob/master/LICENSE.md) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonmyway133%2Fgifmagic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonmyway133%2Fgifmagic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonmyway133%2Fgifmagic/lists"}