Skip to content

eggman87/gifsnap

Repository files navigation

gifsnap

Android library for creating a gif of any view.

Created during a quick hour hackathon, needs optimization.

Example gif created from app:

alt tag

This library uses Gif Encoder from https://github.com/nbadal/android-gif-encoder. Please follow any license restrictions from that code (AndroidGifEncoder).

Example Usage, which will record a gif with 40 frames of the view android.R.id.content (root view of an activity). Keep in mind that a lot of processing is done on background threads....callback is on UI thread.

GifSnap gifSnap = new GifSnap(findViewById(android.R.id.content));
gifSnap.recordGif("GifSnap", 40, new OnGifSnapListener() {
    @Override
    public void onGifCompleted(String gifPath) {

    }
});

Notes:

  • app module is just for local testing.
  • code is a little messy...will be refactored soon.

About

Android library for creating a gif of any view.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages