generate_gallery.sh 433 Bytes
Newer Older
Jonas Heinrich's avatar
Jonas Heinrich committed
1
echo "<div class='image-grid'>"
2
for i in $(ls *.png *.jpg | grep -v thumb)
Jonas Heinrich's avatar
Jonas Heinrich committed
3 4 5 6 7 8 9 10
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
11
zip pressebilder_ausstellung-virtuell.de.zip $(ls *.png *.jpg | grep -v thumb)