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

https://github.com/ritchie46/gophy

Create GIF files from images.
https://github.com/ritchie46/gophy

gif-animation gif-maker go images python

Last synced: 7 months ago
JSON representation

Create GIF files from images.

Awesome Lists containing this project

README

          

# GOPHY

![http://tech.nitoyon.com/en/blog/2016/01/07/go-animated-gif-gen/](./res/gopher.gif)

Small Python binding to the GIF module in Golang. Create an animated GIF from an array of image locations.

Supported image types are:

* PNG
* JPEG
* GIF

## Usage

### Python side
```python
from gophy import img2gif

files = ["./res/g1.gif", "./res/g2.gif", "./res/g3.gif"]
out = "./out.gif"
fps = 4
img2gif(files, out, fps)
```

### Golang
```go
files := []string {"./picture_1.png",
"./picture_2.png"}

fps := 2
out := "./out.gif"

img2gif.BuildGif(&files, fps, out)
```

## Installation

`$pip install git+https://github.com/ritchie46/GOPHY.git`

## OS

Windows is not yet supported.
Tested on Linux, OSx should probably work.