From 7a3ab27977fda22c1ca12a2d1f3647e1026d06bb Mon Sep 17 00:00:00 2001 From: Dario Emerson Date: Fri, 22 May 2020 15:12:55 +0200 Subject: [PATCH] Changed icon scaling algorithm to CatmullRom --- cmd/package.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/package.go b/cmd/package.go index 3c9134e6..1774ba63 100644 --- a/cmd/package.go +++ b/cmd/package.go @@ -100,7 +100,7 @@ func generateWindowsIcon(pngFilename string, iconfile string) error { for _, size := range sizes { rect := image.Rect(0, 0, int(size), int(size)) rawdata := image.NewRGBA(rect) - scale := draw.ApproxBiLinear + scale := draw.CatmullRom scale.Scale(rawdata, rect, pngdata, pngdata.Bounds(), draw.Over, nil) icondata := new(bytes.Buffer)