#!/bin/sh
out_str="
\n"
for f in img/*.jpg; do
img_name=$(basename $f);
echo "Processing image '${f}'..."
magick "$f" -thumbnail '320x320^' -gravity center -extent 320x320 -quality 72 "img/thumb/$img_name"
out_str="${out_str}-
\n"
done;
out_str="${out_str}
\n"
printf "${out_str}"