feat(author): support svg image

This commit is contained in:
ZhenShuo Leo committed 2025-12-23 01:13:56 +08:00
1 parent 34fc0e619f
commit afa810841c
5 files changed
+5 -5

No files matched your search

+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 ) }}