Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/leafo/giflib

gif
https://github.com/leafo/giflib

Last synced: about 2 months ago
JSON representation

gif

Awesome Lists containing this project

README

        

# giflib

![test](https://github.com/leafo/giflib/workflows/test/badge.svg)

Lua bindings to [GIFLIB](http://giflib.sourceforge.net/) for LuaJIT using FFI.

## Installation

You'll need both LuaJIT (any version) and GIFLIB 5 installed. On ArchLinux:

```bash
$ sudo pacman -Sy luajit giflib
```

It's recommended to use LuaRocks to install **giflib**.

```bash
$ luarocks install giflib
```

## Basic Usage

This library was created for a very specific usage and does not expose the
entire GIFLIB API. Feel free to create an issue if there's something specific
you need.

```lua
local giflib = require("giflib")

local gif = assert(giflib.load_gif("test.gif"))
gif:write_first_frame("test-frame-1.gif")
gif:close()
```

**TODO: more documentation**