From: Julien Moutinho Date: Tue, 27 Feb 2024 01:47:06 +0000 (+0100) Subject: index: support JPG and MOV formats X-Git-Url: https://git.sourcephile.fr/julm/camera.git/commitdiff_plain index: support JPG and MOV formats --- diff --git a/index.sh b/index.sh index 82b0842..6248eed 100755 --- a/index.sh +++ b/index.sh @@ -118,8 +118,9 @@ EOF else scale="360:-2"; orient="portrait" fi } + unset dst case "$src" in - *.jpg) + *.jpg|*.JPG) echo "
  • " echo "" printf "
    " test fav/"$base".avif -nt src/"$src" || { @@ -252,6 +253,11 @@ EOF echo "" echo "

    $name.webm

    " echo "" + ;; + *) + echo >&2 "ERROR: unsupported format: $src" + exit 1 + ;; esac touch -a src/"$base".txt printf %s "" diff --git a/reencode.sh b/reencode.sh index 9662270..394d4be 100755 --- a/reencode.sh +++ b/reencode.sh @@ -35,7 +35,7 @@ for dir in "$@"; do fi } case "$src" in - *.mp4) + *.mp4|*.MOV) need_psize case $psize in 480) crf=30;;