Add thumbnail-resizing script.

master
Niels G. W. Serup 6 years ago
parent 3d6322db4f
commit 85c756c3fd
  1. 1
      .gitignore
  2. 17
      scripts/resize-thumbnails.sh
  3. 1
      scripts/settings

1
.gitignore vendored

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

@ -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

@ -0,0 +1 @@
thumbnail_height=300
Loading…
Cancel
Save