#!/bin/bash # # gal # Neil Gershenfeld 4/28/13 # script to make HTML galleries # # list pictures # rm -f files ls *JPG > files ls *jpg >> files ls *PNG >> files ls *png >> files # # make thumbnails # echo "convert thumbnails:" awk "{ print \"convert -auto-orient -resize 140x100 \"\$0 \" th_\"\$0 \"\necho \" \$0}" files > conv sh conv rm conv # # make screen images # #echo "convert screen images:" #awk "{ print \"convert -auto-orient -resize 1024x768 \"\$0 \" sc_\"\$0 #\"\necho \" \$0}" files > conv #sh conv #rm conv # # orient images # echo "orient images:" awk "{ print \"convert -auto-orient \"\$0 \" \"\$0 \"\necho \" \$0}" files > conv sh conv rm conv # # add header # awk "{ system(\"echo '\n
' > \" \$0 \".html\" ) }" files # # add image links # echo -e "\n" > index.html awk "{ print \"\" }" files >> index.html awk "{ system(\"echo '' >> \" \$0 \".html\" ) }" files # # add index links # awk "{ system(\"echo '