vendor: update willnorris.com/go/gifresize

This commit is contained in:
Will Norris 2015-12-07 22:42:12 -08:00
parent d343a5f5ee
commit 7a26a577a8
2 changed files with 6 additions and 2 deletions

View file

@ -59,6 +59,10 @@ func Process(w io.Writer, r io.Reader, transform TransformFunc) error {
im.Image[index] = imageToPaletted(transform(img), frame.Palette)
}
// Set image.Config to new height and width
im.Config.Width = im.Image[0].Bounds().Max.X
im.Config.Height = im.Image[0].Bounds().Max.Y
return gif.EncodeAll(w, im)
}