#!/usr/bin/perl -w # -*- Mode: Perl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- =for the record Should make fine html pages out of a dir of photos This version for just 2col s=400x300 -> m=800x600 l=1600x1200 run with ls | pag-s2ml > index.html expects small images (and possible a "writeme" file) in cur dir and med in subdir "m" and large in subdir "l" "writeme" is where to put text you'd like to see on the page. pag-* takes the text (which should be marked up ready for insertion into an html file) and writes it out between the /table and /body tags. Next: should take input for page title. getopts :^/ ? ls | pag-s2ml -t "gunrack photos" > index.html =cut to code use Image::Size; use File::Basename; #use subs ("eachpic"); { print "
\(Images link to larger versions. Read about photopage/pag-s2ml?\)
| \n" if $i%2; # odd table bin last FILE; } $html = eachpic($_); } until $html; print $html; print " |