1

Correction de l'affichage d'images en mode portrait

This commit is contained in:
2026-04-07 16:05:56 +02:00
parent fe354a01c8
commit 538bd81ef8

View File

@@ -6,7 +6,7 @@
{{- $display := $image -}}
{{- if ne $image.MediaType.SubType "svg" -}}
{{- if and (gt $image.Height $image.Width) (ge $image.Height 1080) -}}
{{- if and (gt $image.Height 1080) (ge $image.Height (mul $image.Width 2)) -}}
{{- $cropHeight := div (mul $image.Width 9) 16 -}}
{{- $display = partial "media/process-image.html" (dict
"image" $image