mirror of
https://github.com/willnorris/imageproxy.git
synced 2024-12-30 22:34:18 -05:00
don't drop error from gif.EncodeAll
This commit is contained in:
parent
b2ae3a5840
commit
66fcba95a0
1 changed files with 1 additions and 2 deletions
3
third_party/gifresize/gifresize.go
vendored
3
third_party/gifresize/gifresize.go
vendored
|
@ -53,8 +53,7 @@ func Process(w io.Writer, r io.Reader, transform TransformFunc) error {
|
||||||
im.Image[index] = imageToPaletted(transform(img))
|
im.Image[index] = imageToPaletted(transform(img))
|
||||||
}
|
}
|
||||||
|
|
||||||
gif.EncodeAll(w, im)
|
return gif.EncodeAll(w, im)
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func imageToPaletted(img image.Image) *image.Paletted {
|
func imageToPaletted(img image.Image) *image.Paletted {
|
||||||
|
|
Loading…
Reference in a new issue