Merge branch 'gh-1151-gif' of github.com:ejulio-ts/d2 into gh-1151-gif

This commit is contained in:
Júlio César Batista 2023-04-14 19:44:51 -03:00
commit bd1e889e5c
No known key found for this signature in database
GPG key ID: 10C4B861BF314878

View file

@ -65,7 +65,7 @@ func AnimatePNGs(pngs [][]byte, animIntervalMs int) ([]byte, error) {
}
palettedImg, ok := gifImg.(*image.Paletted)
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