generate_gallery.sh 421 Bytes
Newer Older
Jonas Heinrich's avatar
Jonas Heinrich committed
1
2
3
4
5
6
7
8
9
10
11
echo "<div class='image-grid'>"
for i in $(ls *.jpg | grep -v thumb)
do
  convert $i -auto-orient -resize 400 ${i%.*}_thumb.jpg
  echo "  <div class='image-thumb' style='background-image: url(img/${i%.*}_thumb.jpg);'>"
  echo "    <a href='img/${i}' target=new></a>"
  echo "  </div>"
done
echo "</div>"
rm pressebilder_ausstellung-virtuell.de.zip
zip pressebilder_ausstellung-virtuell.de.zip $(ls *.jpg | grep -v thumb)