gifencoder

package module
v0.0.0-...-2d49a31 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2013 License: MIT Imports: 6 Imported by: 0

README

gifencoder

UPDATE Since version 1.2, Go has included an implementation of Encode and EncodeAll into the standard library.

The Go language has support for a lot of things in its library, including images. Unfortunately half of the GIF package is missing: you can only decode files, not encode them. This repository aims to provide the Encode and EncodeAll functions to complete the functionality.

Has support for static images and animations (use Encode for static images and EncodeAll for animations), variable delay between frames and infinite looping.

I've tested the output in a few different viewers and they all rendered it correctly, except for HoneyView. I'm still not sure why, and any help is welcome.

All information on the GIF format was taken from the Wikipedia page on GIF

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(w io.Writer, m *image.Paletted) error

Encode takes a single *image.Paletted and encodes it to an io.Writer

func EncodeAll

func EncodeAll(w io.Writer, g *gif.GIF) (err error)

EncodeAll encodes a gif to an io.Writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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