https://github.com/boppreh/gifencoder
The missing method gif.Encode in Go's library
https://github.com/boppreh/gifencoder
Last synced: about 2 months ago
JSON representation
The missing method gif.Encode in Go's library
- Host: GitHub
- URL: https://github.com/boppreh/gifencoder
- Owner: boppreh
- License: mit
- Created: 2013-05-22T01:26:56.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-29T19:23:47.000Z (over 11 years ago)
- Last Synced: 2025-03-25T13:45:59.876Z (2 months ago)
- Language: Go
- Homepage:
- Size: 3.59 MB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
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](http://golang.org/pkg/image/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](http://www.honeyview.org/). 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](https://en.wikipedia.org/wiki/Graphics_Interchange_Format)