imvenj / GifMagic

πŸ’ˆ Gif maker and extractor in Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GifMagic

CI Status Version Carthage Compatible License Platform Swift

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, onmyway133@gmail.com

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.

About

πŸ’ˆ Gif maker and extractor in Swift

License:Other


Languages

Language:Swift 89.3%Language:Ruby 9.2%Language:Shell 1.5%