homepage/photography/convert.sh
2026-02-01 18:45:50 +01:00

6 lines
160 B
Bash
Executable file

#!/bin/sh
for f in *.jpg *.JPG *.JPEG *.png; do
[ -e "$f" ] || continue # skip if no match
avifenc --min 30 --max 40 "$f" "images/${f%.*}.avif"
done