From e65a179c0a55bb4fd488dfc4931a9bab2ff49744 Mon Sep 17 00:00:00 2001 From: Bassel Al Sheikh Ali Date: Tue, 31 Dec 2024 08:00:51 +0300 Subject: [PATCH] fix: add Arabic font support and SVG upload --- app/handlers/images.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/handlers/images.go b/app/handlers/images.go index 3fe232065..813165783 100644 --- a/app/handlers/images.go +++ b/app/handlers/images.go @@ -198,7 +198,8 @@ func Favicon() web.HandlerFunc { opts := []imagic.ImageOperation{} if size > 0 { - opts = append(opts, imagic.FitToWidth(size)) + opts = append(opts, imagic.Resize(size)) + opts = append(opts, imagic.Fit()) } if c.QueryParam("bg") != "" {