/Regift

Easily convert a video to a GIF on iOS.

Primary LanguageSwiftMIT LicenseMIT

Regift

Easily convert a video to a GIF on iOS and OSX.

Version License Platform Carthage compatible

Installation

Cocoapods

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

pod "Regift"

Carthage

Regift is available through Carthage.

github 'matthewpalmer/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.