You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
278 B

#!/bin/sh
set -e
cd "$(dirname "$0")"
. ./settings
cd ..
mkdir -p thumbnails-small
cd thumbnails
for x in *; do
large=$x
small=../thumbnails-small/$x
if ! [ -f $small ] || [ $large -nt $small ]; then
convert $x -resize x"$thumbnail_height" $small
fi
done