Fixed WebP resizer

This commit is contained in:
Eduard Urbach 2017-06-14 18:20:49 +02:00
parent c0ffa522b9
commit 1157c519e8

View File

@ -18,7 +18,7 @@ func (output *AvatarWebPFileOutput) SaveAvatar(avatar *Avatar) error {
// Resize if needed
if img.Bounds().Dx() > output.Size {
img = resize.Resize(arn.AvatarSmallSize, 0, img, resize.Lanczos3)
img = resize.Resize(uint(output.Size), 0, img, resize.Lanczos3)
}
// Write to file