display/TakeScreenshot: use .jpg smaller images

closes #44
This commit is contained in:
2026-06-10 23:50:08 +02:00
parent d969c041d0
commit 9284a8f72a
+1 -1
View File
@@ -17,7 +17,7 @@ import (
) )
func TakeScreenshot() (string, error) { func TakeScreenshot() (string, error) {
tempFilePath := filepath.Join(os.TempDir(), fmt.Sprintf("screenshot_%d.png", time.Now().Unix())) tempFilePath := filepath.Join(os.TempDir(), fmt.Sprintf("screenshot_%d.jpg", time.Now().Unix()))
cmds := []*exec.Cmd{ cmds := []*exec.Cmd{
exec.Command("gnome-screenshot", "-f", tempFilePath), exec.Command("gnome-screenshot", "-f", tempFilePath),