Update lib/xgif/xgif.go

Co-authored-by: gavin-ts <85081687+gavin-ts@users.noreply.github.com>
This commit is contained in:
Júlio César Batista 2023-04-14 15:52:50 -03:00 committed by GitHub
parent 492db16e92
commit d1bb3cc575
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@ func AnimatePNGs(pngs [][]byte, animIntervalMs int) ([]byte, error) {
} }
palettedImg, ok := gifImg.(*image.Paletted) palettedImg, ok := gifImg.(*image.Paletted)
if !ok { if !ok {
return nil, fmt.Errorf("decoded git image could not be cast as *image.Paletted") return nil, fmt.Errorf("decoded gif image could not be cast as *image.Paletted")
} }
// 2. make GIF frames of the same size, keeping images centered and with a white background // 2. make GIF frames of the same size, keeping images centered and with a white background