aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2025-03-17 16:44:56 -0700
committerRose Hogenson <rosehogenson@posteo.net>2025-03-17 16:44:56 -0700
commitc62789a6c3c2998cdc94d60166a0d269dce8db68 (patch)
tree745dfc1ea931fa04cee7841858b5275fe6a1e8a0
parent8896fdcf2c049a5b428ca1c49bf28fc2702c0ae1 (diff)
downloadimgutil-c62789a6c3c2998cdc94d60166a0d269dce8db68.tar.zst
Use bilinear scaling
-rw-r--r--icat.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/icat.go b/icat.go
index 15f10d1..01f0400 100644
--- a/icat.go
+++ b/icat.go
@@ -47,7 +47,7 @@ func printImg(filename string, cols, lines int) error {
}
dst := image.NewRGBA(image.Rect(0, 0, cols, 2*lines))
- draw.CatmullRom.Scale(dst, dst.Bounds(), img, img.Bounds(), draw.Over, nil)
+ draw.BiLinear.Scale(dst, dst.Bounds(), img, img.Bounds(), draw.Over, nil)
for y := 0; y < 2*lines; y += 2 {
for x := 0; x < cols; x++ {