server: resize social media image
Signed-off-by: Naman Sood <mail@nsood.in>
This commit is contained in:
parent
2cbd891473
commit
5904b68813
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue