https://github.com/leafo/giflib
gif
https://github.com/leafo/giflib
Last synced: about 2 months ago
JSON representation
gif
- Host: GitHub
- URL: https://github.com/leafo/giflib
- Owner: leafo
- Created: 2015-10-17T16:23:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-02-08T23:16:59.000Z (about 4 years ago)
- Last Synced: 2024-05-01T23:12:50.666Z (12 months ago)
- Language: MoonScript
- Size: 3.31 MB
- Stars: 7
- Watchers: 4
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-resty - giflib
README
# giflib

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**