diff --git a/vendor/vendor.json b/vendor/vendor.json index dd8258c..6df34f3 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -69,8 +69,8 @@ }, { "path": "willnorris.com/go/gifresize", - "revision": "9ea3f344c54d0eaa7e9494e3a00bec96676c9bab", - "revisionTime": "2015-05-29T07:34:41-07:00" + "revision": "104a7cd64b08d0ebbf2b5c81fa9c99858ba9ee46", + "revisionTime": "2015-12-07T22:25:22-08:00" } ] } diff --git a/vendor/willnorris.com/go/gifresize/gifresize.go b/vendor/willnorris.com/go/gifresize/gifresize.go index 217039d..cc5f2ed 100644 --- a/vendor/willnorris.com/go/gifresize/gifresize.go +++ b/vendor/willnorris.com/go/gifresize/gifresize.go @@ -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) }