Préserver les GIF animés lors des transformations d'images
This commit is contained in:
@@ -100,7 +100,11 @@
|
||||
{{- $title := default (printf "Image complémentaire : %s" $imageName) (index $data "title") -}}
|
||||
{{- $thumbnail := . -}}
|
||||
{{- if and (ne .MediaType.SubType "svg") (gt .Width 360) -}}
|
||||
{{- $thumbnail = .Resize "360x webp q80" -}}
|
||||
{{- $thumbnail = partial "media/process-image.html" (dict
|
||||
"image" .
|
||||
"action" "Resize"
|
||||
"spec" "360x"
|
||||
) -}}
|
||||
{{- end -}}
|
||||
<li>
|
||||
<a href="{{ .RelPermalink }}" title="{{ $title }}">
|
||||
|
||||
Reference in New Issue
Block a user