website/projects/dawnchaos/generate_thumbnails.tup
2019-11-01 16:17:41 +01:00

14 lines
323 B
Bash
Executable file

#!/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"