chore: use better scaling kernel

This commit is contained in:
2026-03-09 08:41:52 +01:00
parent 1310b7b243
commit bc900e1450
7 changed files with 1 additions and 1983 deletions
-6
View File
@@ -3,20 +3,14 @@ package main
import (
"context"
"log/slog"
"net/http"
"os"
"os/signal"
_ "net/http/pprof"
"git.schreifuchs.ch/schreifuchs/schreifuchs.ch/internal/pkg/config"
"git.schreifuchs.ch/schreifuchs/schreifuchs.ch/internal/server"
)
func main() {
go func() {
http.ListenAndServe("localhost:6060", nil)
}()
ctx := context.Background()
ctx, cancle := context.WithCancel(ctx)
defer cancle()
+1 -1
View File
@@ -14,7 +14,7 @@ func scale(src image.Image, options Options) image.Image {
)
// Resize:
draw.BiLinear.Scale(dst, dst.Rect, src, src.Bounds(), draw.Over, nil)
draw.ApproxBiLinear.Scale(dst, dst.Rect, src, src.Bounds(), draw.Over, nil)
// Encode to `output`:
return dst
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 439 KiB

-1976
View File
File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 112 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 439 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 439 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 439 KiB