Skip to content

Commit

Permalink
fix typos and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nota30 committed Feb 11, 2024
1 parent 59806fb commit c714722
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
func main() {
gify := gifenc.Config{}

// Decode
// Decode
var gif *gif.GIF // Provide a gif
imgs, err := gify.Decode(gif)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"image/gif"
)

// Decode a gif. This will split the GIF into multiple images.
func (config Config) Decode(gif *gif.GIF) ([]*image.RGBA, error) {
imgs, err := split(gif, config.Width, config.Height)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"image/gif"
)

// Encode a GIF. Provide an array of image to be combined into a GIF.
func (config Config) Encode(images []image.Image) (*gif.GIF, error) {
animated := gif.GIF{
LoopCount: 0,
Expand Down

0 comments on commit c714722

Please sign in to comment.