From 45816618d0ef5682c7f4989a9d80e57a363534e7 Mon Sep 17 00:00:00 2001 From: Leon Mika Date: Sun, 23 Nov 2025 21:43:40 +1100 Subject: [PATCH] Crop bottom half --- cmd/fetch-header-image/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/fetch-header-image/main.go b/cmd/fetch-header-image/main.go index f70ab91..77861e9 100644 --- a/cmd/fetch-header-image/main.go +++ b/cmd/fetch-header-image/main.go @@ -29,6 +29,9 @@ func main() { rImg := imaging.Resize(img, 1280, 0, imaging.Lanczos) + // TEMP: crop bottom half + rImg = imaging.CropAnchor(rImg, rImg.Bounds().Dx(), rImg.Bounds().Dy()/2, imaging.Bottom) + if err := os.MkdirAll(filepath.Dir(*targetFile), 0755); err != nil { log.Fatal(err) }