{"id":15037564,"url":"https://github.com/eduardourso/gifgenerator","last_synced_at":"2025-07-26T13:32:57.636Z","repository":{"id":56912083,"uuid":"50423027","full_name":"eduardourso/GIFGenerator","owner":"eduardourso","description":"iOS Library for converting images into animated GIFs","archived":false,"fork":false,"pushed_at":"2017-08-10T10:35:21.000Z","size":5478,"stargazers_count":38,"open_issues_count":1,"forks_count":11,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-12T06:47:27.556Z","etag":null,"topics":["cocoapods","frame-delay","gif","gif-animation","gif-creator","gif-generator","gif-library","gif-maker","gifs","ios-gif","ios-lib","ios-swift","podfile","swift","swift-3","swift-framework","swift-language","swift-library","swift3","video"],"latest_commit_sha":null,"homepage":"","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/eduardourso.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":"2016-01-26T10:59:47.000Z","updated_at":"2024-06-13T13:28:16.000Z","dependencies_parsed_at":"2022-08-20T20:20:35.072Z","dependency_job_id":null,"html_url":"https://github.com/eduardourso/GIFGenerator","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/eduardourso/GIFGenerator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardourso%2FGIFGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardourso%2FGIFGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardourso%2FGIFGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardourso%2FGIFGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eduardourso","download_url":"https://codeload.github.com/eduardourso/GIFGenerator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduardourso%2FGIFGenerator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260103186,"owners_count":22959052,"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":["cocoapods","frame-delay","gif","gif-animation","gif-creator","gif-generator","gif-library","gif-maker","gifs","ios-gif","ios-lib","ios-swift","podfile","swift","swift-3","swift-framework","swift-language","swift-library","swift3","video"],"created_at":"2024-09-24T20:35:00.156Z","updated_at":"2025-06-16T05:10:56.249Z","avatar_url":"https://github.com/eduardourso.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"![.GIFGenerator](http://i.imgur.com/IDEiCl2.png?1)\n\n[![Build Status](https://travis-ci.org/eduardourso/GIFGenerator.svg?branch=master)](https://travis-ci.org/eduardourso/GIFGenerator)\n[![Version](https://img.shields.io/cocoapods/v/GIFGenerator.svg?style=flat)](http://cocoapods.org/pods/GIFGenerator)\n[![License](https://img.shields.io/cocoapods/l/GIFGenerator.svg?style=flat)](http://cocoapods.org/pods/GIFGenerator)\n[![Platform](https://img.shields.io/cocoapods/p/GIFGenerator.svg?style=flat)](http://cocoapods.org/pods/GIFGenerator)\n\n### Add to your project\nThere are 2 ways you can add .GIFGenerator to your project:\n\n### Manual installation\nSimply import the 'GIFGenerator' folder into your project then import the classes that you want to use.\n\n#### Obj-C\n```objective-c\n#import \"GIFGenerator.h\"\n``` \n#### Swift\n```swift\nimport GIFGenerator\n``` \n\n### Avaliable in CocoaPods\nGIFGenerator is available through [CocoaPods](https://cocoapods.org) See the \"[Getting Started](http://guides.cocoapods.org/syntax/podfile.html)\" guide for more information.\n\nTo install it, simply add the following line to your Podfile:\n\n#### Podfile\n```ruby\nplatform :ios, '8.0'\npod \"GIFGenerator\"\n```\n\n### Practical use\n```swift\nlet gifGenerator = GifGenerator()\n\ngifGenerator.generateGifFromImages(imagesArray, frameDelay: 0.5, destinationURL: url, callback: { (data, error) -\u003e () in\n  //returns a gif file.\n})\n\n//ATENTION: you must provide the part of the video that you want to convert, so if you need to convert just from the 0:10 to 0:20 sec. you must cut and deal with the video before you send it to the library.\ngifGenerator.generateGifFromVideoURL(videoURL: url, framesInterval: 10, frameDelay: 0.2, destinationURL: NSURL(fileURLWithPath: destinationPath), callback: { (data, error) -\u003e () in\n  //returns a gif file.\n})\n\n```\nThis generates a GIF from provided images or video file.\n\nThe library is lightweight and very straight forward. Once you have the array of images, pass it to GIFGenerator alongside the url and frame delay. \nLet me explain those for you: \n```\nimagesArray - array of images that will compose the GIF file!\nframeDelay  -  is the amount of time between each frame in the GIF.\ndestinationURL  - is the url where the GIF file will be stored.\n```\n\nOr if you have the video url, pass it to GIFGenerator alongside the url and frame delay. \nLet me explain those for you: \n```\nvideoURL - url where the video is stored that will compose the GIF file!\nframeDelay  -  is the amount of time between each frame in the GIF.\ndestinationURL  - is the url where the GIF file will be stored.\n```\nI recommend you to play with those parameters to see how it can affect the GIF file.\n\n### Example Project\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n### Author\nEduardo Urso, eduardourso@gmail.com\n\nIf you have any doubts, comments or improvements just shoot me an email.\n\n### License\nGIFGenerator is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduardourso%2Fgifgenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feduardourso%2Fgifgenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduardourso%2Fgifgenerator/lists"}