feat(author): support svg image

This commit is contained in:
ZhenShuo Leo
2025-11-26 17:46:53 +08:00
parent 34fc0e619f
commit afa810841c
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
{{ if $authorImage }}
{{ $final := $authorImage }}
{{ $squareImage := $authorImage }}
{{ if not $disableImageOptimization }}
{{ if not (or $disableImageOptimization (eq $authorImage.MediaType.SubType "svg")) }}
{{ $final = $authorImage.Fill "192x192" }}
{{ $shortSide := int (math.Min $authorImage.Width $authorImage.Height) }}
{{ $squareImage = $authorImage.Crop (printf "%dx%d" $shortSide $shortSide ) }}