Skip to content

onmyway133/GifMagic

Repository files navigation

GifMagic

❤️ Support my apps ❤️

❤️❤️😇😍🤘❤️❤️

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.

Releases

No releases published

Packages

No packages published