/Regift

Easily convert a video to a GIF on iOS.

Primary LanguageSwiftMIT LicenseMIT

Regift

Easily convert a video to a GIF on iOS.

Version License Platform

Installation

Cocoapods

Regift is available through CocoaPods, and requires Swift 2. To install it, simply add the following line to your Podfile:

pod "Regift"

Quick Start

import Regift
let videoURL   = ...
let frameCount = 16
let delayTime  = 0.2
let loopCount  = 0    // 0 means loop forever

let regift = Regift(sourceFileURL: videoURL, frameCount: frameCount, delayTime, loopCount: loopCount)
print("Gif saved to \(regift.createGif())")

Acknowledgements

Thanks to Rob Mayoff's Gist, without which this library wouldn't exist.