Skip to content

ritchie46/GOPHY

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GOPHY

http://tech.nitoyon.com/en/blog/2016/01/07/go-animated-gif-gen/

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

    from gophy import img2gif

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

Golang

	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.