Crop bottom half
All checks were successful
/ publish (push) Successful in 1m40s

This commit is contained in:
Leon Mika 2025-11-23 21:43:40 +11:00
parent 0177b7f862
commit 45816618d0

View file

@ -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)
}