Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nota30 committed Feb 11, 2024
1 parent bf0050f commit ff501b4
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,38 @@
# gifenc
# Gifenc

A Golang based GIF encoder/decoder
- Convert GIFs to images and images to GIFs

## Prerequisites
- [Go](https://go.dev/)

## Quick Start
Import the `gifenc` package first.
```go
package main

import (
"github.com/Nota30/gifenc"
)

func main() {
gify := gifenc.Config{}

// Decode
imgs, err := gify.Decode("gif path")
if err != nil {
println(err)
}

// Encode
encoded, err := gify.Encode("folder path")
if err != nil {
println(err)
}
}
```
You can view examples in the `test/test.go` file.

## Issues
- This package uses Floyd–Steinberg dithering so the GIF result might not be what you expected.
- Maybe adding other dithering algorithms at a later release?

0 comments on commit ff501b4

Please sign in to comment.