mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-06-27 22:09:40 +02:00
vendor: update willnorris.com/go/gifresize
This commit is contained in:
parent
d343a5f5ee
commit
7a26a577a8
2 changed files with 6 additions and 2 deletions
4
vendor/willnorris.com/go/gifresize/gifresize.go
generated
vendored
4
vendor/willnorris.com/go/gifresize/gifresize.go
generated
vendored
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue