🐛 Fix animated GIFs are static when enableImageWebp is set

Fixes: #866
This commit is contained in:
James Panther
2024-05-01 17:03:04 +10:00
parent 7ff80aabbe
commit 05e5e8b700
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -53,7 +53,7 @@
{{ $width = div .Width 2 }}
{{ $height = div .Height 2 }}
{{ end }}
{{ if $webp }}
{{ if and $webp (ne .MediaType.SubType "gif") }}
<source
{{ if lt .Width 660 }}
{{ with .Resize (printf "%dx%d webp" .Width .Height) }}