Giter Site home page Giter Site logo

hjimagestogif's Introduction

HJImagesToGIF

Convert image array to animated GIF

Save to path

[HJImagesToGIF saveGIFFromImages:images toPath:path WithCallbackBlock:nil];

Save to photo album

[HJImagesToGIF saveGIFToPhotoAlbumFromImages:images WithCallbackBlock:nil];

Example Usage

    NSString *tempPath = [NSHomeDirectory() stringByAppendingPathComponent:
                          [NSString stringWithFormat:@"puppy.gif"]];
    
    NSArray * images = [NSArray arrayWithObjects:[UIImage imageNamed:@"frame1.png"],
                        [UIImage imageNamed:@"frame2.png"],
                        [UIImage imageNamed:@"frame3.png"],
                        [UIImage imageNamed:@"frame4.png"],
                        [UIImage imageNamed:@"frame5.png"],
                        [UIImage imageNamed:@"frame6.png"], nil];
    
    [HJImagesToGIF saveGIFFromImages:images toPath:tempPath WithCallbackBlock:^{
        NSLog(@"Saved to file!");
    }];
    
    [HJImagesToGIF saveGIFToPhotoAlbumFromImages:images WithCallbackBlock:^{
        NSLog(@"Saved to album!");
    }];

alt text alt text alt text alt text alt text alt text alt text

Copyright 2013 Harrison Jackson http://harrisonjackson.us

Feel free to use however you want - if you make any improvements submit a pull request!

hjimagestogif's People

Watchers

Yak avatar

Forkers

xintao222

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.