GifMagic
GifMagic copied to clipboard
💈 Gif maker and extractor in Swift
GifMagic
❤️ Support my apps ❤️
- Push Hero - pure Swift native macOS application to test push notifications
- PastePal - Pasteboard, note and shortcut manager
- Quick Check - smart todo manager
- Alias - App and file shortcut manager
- My other apps
❤️❤️😇😍🤘❤️❤️
Encoder
Encode images into gif file
let url = Encoder().encode(images: images, frameDuration: 0.05)
Decoder
Decode gif file into images and get info
let info = Decoder().decode(gifUrl: url)
info.images
info.frameDuration
info.pixelWidth
info.pixelHeight
Decode video file into images and get info
let info = Decoder().decode(videoUrl: url)
info.images
Modifier
Modify each frame within the gif
let newGifUrl = Handler().modify(gifUrl: url, closure: { image in
// Handle image the way you want
return image
})
Installation
GifMagic is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'GifMagic'
GifMagic is also available through Carthage. To install just write into your Cartfile:
github "onmyway133/GifMagic"
GifMagic can also be installed manually. Just download and drop Sources
folders in your project.
Author
Khoa Pham, [email protected]
Contributing
We would love you to contribute to GifMagic, check the CONTRIBUTING file for more info.
License
GifMagic is available under the MIT license. See the LICENSE file for more info.