5 if [ "$1" != "" ]; then
6 target_file=.thumbs/$(basename -- "$1")
7 if [ "$1" -nt "$target_file" ]; then
8 echo "update $target_file"
9 mogrify -path .thumbs/ -auto-orient -thumbnail 128x128 -quality 90% "$1"
13 find -not -path "./.thumbs/*" \( -iname "*.png" -or -iname "*.jpg" -or -iname "*.jpeg" -or -iname "*.jfif" -or -iname "*.gif" -or -iname "*.webp" \) | parallel -j$(nproc) "$0" {}