# /bin/csh #JRA 10/4/00 # #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 # # needs to have argument as file names #echo $argv #echo $#argv set count = 0 echo '' foreach photo ($argv[*]) #rename the files if necessary (fi there are more than one of the #same file name. Mostly leave commented out. #mv $photo '2'$photo #rotate photo if necessary #echo 'rotating' $photo convert -rotate '90 >' $photo 'r'$photo #make thumbnails #echo 'scaling' $photo convert -sample 240x320 $photo 'thumb'$photo convert -sample 240x320 'r'$photo 'thumbr'$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 '
'