Skip to content

onmyway133/GifMagic

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
bin
 
 
 
 
 
 
 
 
 
 
 
 

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