diff options
author | Asaad Mahmood <Unknowngi@live.com> | 2015-07-28 01:07:16 +0500 |
---|---|---|
committer | Asaad Mahmood <Unknowngi@live.com> | 2015-07-28 01:07:16 +0500 |
commit | 3dd541d3e09b99c60b892c37419dfa30b10700c7 (patch) | |
tree | 2eac6095f6465d2e00846ad9479daedd0609dc5e /api | |
parent | 5b7ae4f864266e25f75c440aef9bbab9c46b1ecf (diff) | |
parent | 62db88ed456148750cd6990ffc02e660af53ef91 (diff) | |
download | chat-3dd541d3e09b99c60b892c37419dfa30b10700c7.tar.gz chat-3dd541d3e09b99c60b892c37419dfa30b10700c7.tar.bz2 chat-3dd541d3e09b99c60b892c37419dfa30b10700c7.zip |
Merge branch 'master' of https://github.com/mattermost/platform
Diffstat (limited to 'api')
-rw-r--r-- | api/file.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/file.go b/api/file.go index 82cee9d1e..889c9dd1b 100644 --- a/api/file.go +++ b/api/file.go @@ -142,7 +142,7 @@ func fireAndForgetHandleImages(filenames []string, fileData [][]byte, teamId, ch go func() { var thumbnail image.Image if imgConfig.Width > int(utils.Cfg.ImageSettings.ThumbnailWidth) { - thumbnail = resize.Resize(utils.Cfg.ImageSettings.ThumbnailWidth, utils.Cfg.ImageSettings.ThumbnailHeight, img, resize.NearestNeighbor) + thumbnail = resize.Resize(utils.Cfg.ImageSettings.ThumbnailWidth, utils.Cfg.ImageSettings.ThumbnailHeight, img, resize.Lanczos3) } else { thumbnail = img } @@ -164,7 +164,7 @@ func fireAndForgetHandleImages(filenames []string, fileData [][]byte, teamId, ch go func() { var preview image.Image if imgConfig.Width > int(utils.Cfg.ImageSettings.PreviewWidth) { - preview = resize.Resize(utils.Cfg.ImageSettings.PreviewWidth, utils.Cfg.ImageSettings.PreviewHeight, img, resize.NearestNeighbor) + preview = resize.Resize(utils.Cfg.ImageSettings.PreviewWidth, utils.Cfg.ImageSettings.PreviewHeight, img, resize.Lanczos3) } else { preview = img } |