Latest 0.0.1
Homepage https://github.com/tsabend/MovingPictures
License MIT
Platforms ios 8.0
Dependencies Result
Authors

CI Status
Version
License
Platform

MovingPictures is a flexible library for turning images into movies.

Usage

/// Create your imageTimes
let imageTimes: [ImageTime] = [(image1, 1.5), (image2, 0.3)]
/// Create the settings for your video
let settings = RenderSettings(size: images1.size, videoFilename: "foo")
/// Make a new instance of MovingPictures
let writer = MovingPictures(settings: settings)
/// Render your images
writer.render(imageTimes) { (result: Result<NSURL, NSError>) in
  do {
    let url = try result.dematerialize()
    /// You now have the video's url and can do whatever with it...
  } catch {
    /// Figure out what went wrong and react accordingly
  }
}   

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

MovingPictures is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "MovingPictures"

Author

tsabend, [email protected]

This code was inspired by the answers in http://stackoverflow.com/questions/3741323/how-do-i-export-uiimage-array-as-a-movie. Thanks to Scott Raposa and Praxiteles.

License

MovingPictures is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "MovingPictures",
    "version": "0.0.1",
    "summary": "Turn your images into videos.",
    "description": "Take an array of images and turn them into a video. Customize the duration of each framenand the exporting file format.",
    "homepage": "https://github.com/tsabend/MovingPictures",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "tsabend": "[email protected]"
    },
    "source": {
        "git": "https://github.com/tsabend/MovingPictures.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "MovingPictures/Classes/**/*",
    "dependencies": {
        "Result": [
            "~> 2.1.3"
        ]
    }
}

Pin It on Pinterest

Share This