Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.
/ Regift Public archive
forked from matthewpalmer/Regift

Easily convert a video to a GIF on iOS.

License

Notifications You must be signed in to change notification settings

udacity/Regift

 
 

Repository files navigation

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.

About

Easily convert a video to a GIF on iOS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 80.0%
  • Ruby 10.7%
  • Objective-C 9.3%