From 5904b6881373fbfc87966b0a184721b445685c86 Mon Sep 17 00:00:00 2001 From: Naman Sood Date: Fri, 17 Dec 2021 04:41:51 -0500 Subject: [PATCH] server: resize social media image Signed-off-by: Naman Sood --- server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.go b/server.go index 6d1a778..d999c87 100644 --- a/server.go +++ b/server.go @@ -205,8 +205,8 @@ func (s *server) loadStylesheet(res http.ResponseWriter, req *http.Request, file } func createImage(title, summary, url string, out io.Writer) error { - imgWidth, imgHeight, imgPaddingX, imgPaddingY := 1200, 630, 45, 90 - accentHeight, spacerHeight := 7.5, 20.0 + imgWidth, imgHeight, imgPaddingX, imgPaddingY := 1200, 600, 50, 100 + accentHeight, spacerHeight := 12.5, 20.0 titleSize, summarySize, urlSize := 63.0, 42.0, 27.0 lineHeight := 1.05 textWidth := float64(imgWidth - 2*imgPaddingX)