Browse Source

Add thumbnail-resizing script.

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

1
.gitignore

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

17
scripts/resize-thumbnails.sh

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

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