Skip to content

Commit

Permalink
fix: add Arabic font support and SVG upload
Browse files Browse the repository at this point in the history
  • Loading branch information
BasselArt committed Dec 31, 2024
1 parent fc0cdaf commit 951b64a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/pkg/validate/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 951b64a

Please sign in to comment.