1

Préserver les GIF animés lors des transformations d'images

This commit is contained in:
2026-03-06 22:54:15 +01:00
parent d16c29fc5d
commit 3ec52dfc71
10 changed files with 90 additions and 14 deletions

View File

@@ -76,7 +76,11 @@
{{- if gt $coverDisplay.Width 1480 -}}
{{- $coverWidth = 1480 -}}
{{- end -}}
{{- $coverDisplay = $coverImage.Resize (printf "%dx webp q80" $coverWidth) -}}
{{- $coverDisplay = partial "media/process-image.html" (dict
"image" $coverImage
"action" "Resize"
"spec" (printf "%dx" $coverWidth)
) -}}
{{- end -}}
{{- end -}}
{{- end -}}