5 if [[ "$1" != "" ]]; then
11 base=$(basename -- "$src")
14 if [[ "$src" -nt "$dst" ]]; then
17 if [[ "$src" == *.mp4 ]] || [[ "$src" == *.gif ]]; then
18 dst_tmp="/tmp/$base.png"
21 ffmpeg -hide_banner -loglevel error -i "$src" -ss 00:00:00.000 -vframes 1 "$dst_tmp"
29 mogrify -path .thumbs/ -auto-orient -thumbnail 128x128 -quality 90% "$src"
35 find -type f -not -path "./.thumbs/*" \
36 | grep -iE "\.png$|\.jpg$|\.jpeg$|\.jfif$|\.gif$|\.webp$|\.mp4$" \
37 | parallel -j$(nproc) "$0" {}