Skip to content

Commit

Permalink
package docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ejulio-ts committed Apr 14, 2023
1 parent 34b7438 commit 492db16
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/xgif/xgif.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// xgif is a helper package to create GIF animations based on PNG images
// The resulting animations have the following properties:
// 1. All frames have the same size (max(pngs.width), max(pngs.height))
// 2. All PNGs are centered in the given frame
// 3. The frame background is plain white
// Note that to convert from a PNG to a GIF compatible image (Bitmap), the PNG image must be quantized (colors are aggregated in median buckets)
// so that it has at most 255 colors.
// This is required because GIFs support only 256 colors and we must keep 1 slot for the white background.
package xgif

import (
Expand All @@ -9,6 +17,7 @@ import (
"image/png"

"github.com/ericpauley/go-quantize/quantize"

"oss.terrastruct.com/util-go/go2"
)

Expand Down

0 comments on commit 492db16

Please sign in to comment.