diff options
author | Jack <jackdeng@gmail.com> | 2015-09-23 15:57:49 -0700 |
---|---|---|
committer | Jack <jackdeng@gmail.com> | 2015-09-23 15:57:49 -0700 |
commit | 396a535f1001526cde60e77f8fc5e571bf4d882b (patch) | |
tree | 8477807a27756b887ee31511f89617117fa91dbc /api/user.go | |
parent | fba72b849c65a5639296f64f1653243eccddab51 (diff) | |
download | chat-396a535f1001526cde60e77f8fc5e571bf4d882b.tar.gz chat-396a535f1001526cde60e77f8fc5e571bf4d882b.tar.bz2 chat-396a535f1001526cde60e77f8fc5e571bf4d882b.zip |
use github.com/disintegration/imaging
Diffstat (limited to 'api/user.go')
-rw-r--r-- | api/user.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/user.go b/api/user.go index 40410cc5b..3f26531ad 100644 --- a/api/user.go +++ b/api/user.go @@ -8,13 +8,13 @@ import ( l4g "code.google.com/p/log4go" b64 "encoding/base64" "fmt" + "github.com/disintegration/imaging" "github.com/golang/freetype" "github.com/gorilla/mux" "github.com/mattermost/platform/model" "github.com/mattermost/platform/store" "github.com/mattermost/platform/utils" "github.com/mssola/user_agent" - "github.com/nfnt/resize" "hash/fnv" "image" "image/color" @@ -775,7 +775,7 @@ func uploadProfileImage(c *Context, w http.ResponseWriter, r *http.Request) { } // Scale profile image - img = resize.Resize(utils.Cfg.FileSettings.ProfileWidth, utils.Cfg.FileSettings.ProfileHeight, img, resize.Lanczos3) + img = imaging.Resize(img, utils.Cfg.FileSettings.ProfileWidth, utils.Cfg.FileSettings.ProfileHeight, imaging.Lanczos) buf := new(bytes.Buffer) err = png.Encode(buf, img) |