Skip to content

Commit 0bb56a4

Browse files
authored
Fix Avatar Resize (resize algo NearestNeighbor -> Bilinear) (#12745) (#12750)
* Update Vendor github.com/nfnt/resize * switch resize algo NearestNeighbor -> Bilinear
1 parent 2806a31 commit 0bb56a4

File tree

8 files changed

+292
-124
lines changed

8 files changed

+292
-124
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ require (
7575
github.com/microcosm-cc/bluemonday v1.0.3-0.20191119130333-0a75d7616912
7676
github.com/mitchellh/go-homedir v1.1.0
7777
github.com/msteinert/pam v0.0.0-20151204160544-02ccfbfaf0cc
78-
github.com/nfnt/resize v0.0.0-20160724205520-891127d8d1b5
78+
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
7979
github.com/niklasfasching/go-org v0.1.9
8080
github.com/oliamb/cutter v0.2.2
8181
github.com/olivere/elastic/v7 v7.0.9

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,8 @@ github.com/mschoch/smat v0.2.0/go.mod h1:kc9mz7DoBKqDyiRL7VZN8KvXQMWeTaVnttLRXOl
483483
github.com/msteinert/pam v0.0.0-20151204160544-02ccfbfaf0cc h1:z1PgdCCmYYVL0BoJTUgmAq1p7ca8fzYIPsNyfsN3xAU=
484484
github.com/msteinert/pam v0.0.0-20151204160544-02ccfbfaf0cc/go.mod h1:np1wUFZ6tyoke22qDJZY40URn9Ae51gX7ljIWXN5TJs=
485485
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
486-
github.com/nfnt/resize v0.0.0-20160724205520-891127d8d1b5 h1:BvoENQQU+fZ9uukda/RzCAL/191HHwJA5b13R6diVlY=
487-
github.com/nfnt/resize v0.0.0-20160724205520-891127d8d1b5/go.mod h1:jpp1/29i3P1S/RLdc7JQKbRpFeM1dOBd8T9ki5s+AY8=
486+
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 h1:zYyBkD/k9seD2A7fsi6Oo2LfFZAehjjQMERAvZLEDnQ=
487+
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646/go.mod h1:jpp1/29i3P1S/RLdc7JQKbRpFeM1dOBd8T9ki5s+AY8=
488488
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=
489489
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
490490
github.com/niklasfasching/go-org v0.1.9 h1:Toz8WMIt+qJb52uYEk1YD/muLuOOmRt1CfkV+bKVMkI=

modules/avatar/avatar.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,6 @@ func Prepare(data []byte) (*image.Image, error) {
8989
}
9090
}
9191

92-
img = resize.Resize(AvatarSize, AvatarSize, img, resize.NearestNeighbor)
92+
img = resize.Resize(AvatarSize, AvatarSize, img, resize.Bilinear)
9393
return &img, nil
9494
}

vendor/github.com/nfnt/resize/.travis.yml

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/nfnt/resize/README.md

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/nfnt/resize/resize.go

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)