img2gif

package
v0.0.0-...-9b8a7f0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2017 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildGif

func BuildGif(f *[]string, fps int, p string) error

Executes the functions above in the right order. Takes an array of file paths pointing to images as input. p is a path to the output file. fps: frames per second.

func EncodeImgPaletted

func EncodeImgPaletted(images *[]image.Image) []*image.Paletted

Encode images in *image.Paletted by encoding and decoding to img2gif and image. Encode and decode is necessary to convert jpeg and png to img2gif.

func ReadImages

func ReadImages(files *[]string) []image.Image

Read images from a slice with file locations.

func WriteGif

func WriteGif(im *[]*image.Paletted, d int, path string) error

Write a img2gif file from a paletted image slice d = delay in 100ths of a second per frame.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL