Add thumbnail-resizing script.

This commit is contained in:
Niels G. W. Serup 2016-08-24 15:37:55 +02:00
parent 3d6322db4f
commit 85c756c3fd
3 changed files with 19 additions and 0 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/extern
/thumbnails-small

17
scripts/resize-thumbnails.sh Executable file
View File

@ -0,0 +1,17 @@
#!/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

1
scripts/settings Normal file
View File

@ -0,0 +1 @@
thumbnail_height=300