0
Fork 0
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:
Will Norris 2015-05-18 15:15:54 -07:00
parent b2ae3a5840
commit 66fcba95a0

View file

@ -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 {