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 }