From 5672db2380f7d9b5d30ad5138abe670566909a25 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Fri, 4 Oct 2019 21:24:15 -0400 Subject: [PATCH] reduce max size a little --- activity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activity.go b/activity.go index cc77b94..c44e5aa 100644 --- a/activity.go +++ b/activity.go @@ -158,7 +158,7 @@ func savedonk(url string, name, desc, media string, localize bool) *Donk { } if strings.HasPrefix(media, "image") { img, err := image.Vacuum(&buf, - image.Params{LimitSize: 4800 * 4800, MaxWidth: 2048, MaxHeight: 2048}) + image.Params{LimitSize: 4200 * 4200, MaxWidth: 2048, MaxHeight: 2048}) if err != nil { log.Printf("unable to decode image: %s", err) localize = false