From 55dfe2c97876a8af5db0fb071f002e33fb686128 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 21 Nov 2014 10:58:08 -0500 Subject: custom avatar upload --- modules/avatar/avatar.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/avatar/avatar.go') diff --git a/modules/avatar/avatar.go b/modules/avatar/avatar.go index fb198da149..144fda387e 100644 --- a/modules/avatar/avatar.go +++ b/modules/avatar/avatar.go @@ -121,7 +121,7 @@ func (this *Avatar) Encode(wr io.Writer, size int) (err error) { if img, err = decodeImageFile(imgPath); err != nil { return } - m := resize.Resize(uint(size), 0, img, resize.Lanczos3) + m := resize.Resize(uint(size), 0, img, resize.NearestNeighbor) return jpeg.Encode(wr, m, nil) } -- cgit v1.2.3