2016-08-24 15:37:55 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
|
|
|
|
. ./settings
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
2016-08-25 02:36:24 +02:00
|
|
|
mkdir -p thumbnails-small
|
2016-08-24 15:37:55 +02:00
|
|
|
|
|
|
|
cd thumbnails
|
|
|
|
for x in *; do
|
2016-08-25 02:36:24 +02:00
|
|
|
large=$x
|
|
|
|
small=../thumbnails-small/$x
|
2016-08-25 11:13:15 +02:00
|
|
|
if ! [ -f $small ] || [ $large -nt $small ]; then
|
2016-08-25 02:36:24 +02:00
|
|
|
convert $x -resize x"$thumbnail_height" $small
|
|
|
|
fi
|
2016-08-24 15:37:55 +02:00
|
|
|
done
|