From: Julien Moutinho <julm@sourcephile.fr>
Date: Wed, 8 Jan 2025 21:27:31 +0000 (+0100)
Subject: index: support AVIF as input
X-Git-Url: https://git.sourcephile.fr/julm/camera.git/commitdiff_plain

index: support AVIF as input
---

diff --git a/index.sh b/index.sh
index 5ad5316..96a54fd 100755
--- a/index.sh
+++ b/index.sh
@@ -121,7 +121,7 @@ EOF
     }
     unset dst
     case "$src" in
-      *.jpg|*.JPG)
+      *.jpg|*.JPG|*.avif)
         echo "<li id='$id' class='$wow'><div class='item'>"
         echo "<picture>"
           printf "<source type='image/avif' srcset='"