14 lines
323 B
Plaintext
14 lines
323 B
Plaintext
|
#!/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"
|