Préserver les GIF animés lors des transformations d'images
This commit is contained in:
@@ -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 -}}
|
||||
|
||||
Reference in New Issue
Block a user