# /bin/csh #JRA 1/30/03 # #Shell script that rotates and makes thumbails out of jpeg files #and then writes out a almost perfect table to be inserted into an html #file #things to clean up are: # it writes an empty first row # rotation does not work # # needs to have argument as file names #echo $argv #echo $#argv set count = 0 echo '' echo 'TITLE' echo '' echo '

TITLE

' echo '' foreach photo ($argv[*]) #make thumbnails #echo 'scaling' $photo /usr/local/ImageMagick-5.5.4/bin/convert -sample 240x320 $photo 'thumb'$photo #write out a row for the html table if ($count == 0) then echo '' endif #write out the photo as a cell in a table with a link to the bigger #version from the thumbnail echo '' @ count++ #echo $count if ($count == 4) then @ count = 0 endif end echo '

' #set psd = echo 'Download approx. 14 Mb TIF file
' echo '
' echo 'Pages maintained by ' echo 'Ramón Arrowsmith
' echo 'DATE' echo ''