0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2024-12-30 22:34:18 -05:00

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

4
vendor/vendor.json vendored
View file

@ -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"
}
]
}

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)
}