13 lines
264 B
Bash
Executable File
13 lines
264 B
Bash
Executable File
#!/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 ../.. |