Skip to content

Instantly share code, notes, and snippets.

View ashusath's full-sized avatar

Ashwin Sathawane ashusath

View GitHub Profile
@ashusath
ashusath / GIF2MP4.swift
Created May 10, 2017 05:20 — forked from powhu/GIF2MP4.swift
Swift 3.0 GIF to MP4
//
// GIF2MP4.swift
//
// Created by PowHu Yang on 2017/1/24.
// Copyright © 2017 PowHu Yang. All rights reserved.
//
/*
let data = try! Data(contentsOf: Bundle.main.url(forResource: "gif", withExtension: "gif")!)
let tempUrl = URL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent("temp.mp4")
GIF2MP4(data: data)?.convertAndExport(to: tempUrl, completion: { })