website/projects/dawnchaos/generate_thumbnails.tup

14 lines
323 B
Plaintext
Raw Normal View History

2019-10-29 23:56:37 +01:00
#!/usr/bin/env bash
set -euo pipefail
for i in *.png; do
base=$(basename $i)
filename="${base%.*}"
echo ": $i |> !tup_preserve |>"
echo ": $i |> !mini |> ${filename}_mini_tmp.jpg"
echo ": ${filename}_mini_tmp.jpg |> !compress_jpg |> ${filename}_mini.jpg"
done
#echo ": foreach *_tmp.jpg |> !compress_jpg |> %g.jpg"