From acb3735be217c5c4f3d8b0d44eb66d1fff91ffc8 Mon Sep 17 00:00:00 2001 From: David Ashby Date: Tue, 6 May 2025 15:16:35 -0400 Subject: [PATCH] give the image some space on for the border --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index a16945a..f868bbc 100644 --- a/main.go +++ b/main.go @@ -118,8 +118,9 @@ func updateImage(file string, img *tk.LabelWidget) { return } i = imaging.Fit(i, - must(strconv.Atoi(tk.WinfoScreenWidth(tk.App))), - must(strconv.Atoi(tk.WinfoScreenHeight(tk.App))), + // -50 to give some space to breathe around the edges + must(strconv.Atoi(tk.WinfoScreenWidth(tk.App)))-50, + must(strconv.Atoi(tk.WinfoScreenHeight(tk.App)))-50, imaging.Linear, ) repaint(img, filepath.Base(file), tk.Data(i))