Add thumbnail-resizing script.
This commit is contained in:
parent
3d6322db4f
commit
85c756c3fd
|
@ -1 +1,2 @@
|
||||||
/extern
|
/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…
Reference in New Issue