diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2025-03-17 16:44:56 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2025-03-17 16:44:56 -0700 |
| commit | c62789a6c3c2998cdc94d60166a0d269dce8db68 (patch) | |
| tree | 745dfc1ea931fa04cee7841858b5275fe6a1e8a0 | |
| parent | 8896fdcf2c049a5b428ca1c49bf28fc2702c0ae1 (diff) | |
| download | imgutil-c62789a6c3c2998cdc94d60166a0d269dce8db68.tar.zst | |
Use bilinear scaling
| -rw-r--r-- | icat.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++ { |
