From 951b64aa3902af6d5b18bdb52f16ec7e7e8e4ebb Mon Sep 17 00:00:00 2001 From: Bassel Al Sheikh Ali Date: Tue, 31 Dec 2024 09:19:09 +0300 Subject: [PATCH] fix: add Arabic font support and SVG upload --- app/pkg/validate/upload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/pkg/validate/upload.go b/app/pkg/validate/upload.go index 8f392d73d..9fc81452c 100644 --- a/app/pkg/validate/upload.go +++ b/app/pkg/validate/upload.go @@ -110,7 +110,7 @@ func ImageUpload(ctx context.Context, upload *dto.ImageUpload, opts ImageUploadO } if logo.Height > MaxDimensionSize && logo.Width > MaxDimensionSize { - newImageBytes, err := imagic.Apply(upload.Upload.Content, imagic.Resize(MaxDimensionSize)) + newImageBytes, err := imagic.Apply(upload.Upload.Content, imagic.FitToWidth(MaxDimensionSize)) if err != nil { return nil, err }