#!/bin/sh
set -e
cd "$(dirname "$0")"
. ./settings
cd ..
rm -rf thumbnails-small
mkdir thumbnails-small
cd thumbnails
for x in *; do
convert $x -resize x"$thumbnail_height" ../thumbnails-small/$x
done