13 lines
264 B
Plaintext
13 lines
264 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
echo "-- Cleaning old thumbnails"
|
||
|
cd static/img
|
||
|
rm -rf thumbs
|
||
|
|
||
|
echo "-- Generating thumbnails"
|
||
|
mkdir -p thumbs
|
||
|
mogrify -format png -path thumbs -thumbnail 724 *.png
|
||
|
mogrify -format jpg -path thumbs -thumbnail 724 *.jpg
|
||
|
|
||
|
echo "-- Done"
|
||
|
cd ../..
|