Merge branch 'gh-1151-gif' of github.com:ejulio-ts/d2 into gh-1151-gif
This commit is contained in:
commit
bd1e889e5c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue