diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-12-24 13:34:41 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-12-24 13:34:41 +0100 |
commit | c6559974de52967619ee54d02846f71550fdb3e5 (patch) | |
tree | 45da697d03e3d39da89a8daeeb88e4f4c74ecfe1 /include/gen-xhtml-thumbnails | |
parent | 30a5734b75cc12b9c5667400ad286d38610cff25 (diff) |
gen-xhtml-thumbnails: Produce a little more ordered output
Diffstat (limited to 'include/gen-xhtml-thumbnails')
-rwxr-xr-x | include/gen-xhtml-thumbnails | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/gen-xhtml-thumbnails b/include/gen-xhtml-thumbnails index 95d3f08..7b25023 100755 --- a/include/gen-xhtml-thumbnails +++ b/include/gen-xhtml-thumbnails @@ -63,7 +63,12 @@ foreach my $file (sort(@files)) { my $image = Image::Imlib2->load($file); my $thumb; - print $index "<a href=\"$file\"><img src=\".thumbs/$file\" alt=\"$file\" /></a>\n"; + printf {$index} ( + '<div style="float: left; width: %dpx; height: %dpx">', + THUMB_MAX_DIM * 1.1, + THUMB_MAX_DIM * 1.1, + ); + print {$index} "<a href=\"$file\"><img src=\".thumbs/$file\" alt=\"$file\" /></a></div>\n"; print_progress; $number++; |