summaryrefslogtreecommitdiff
path: root/include/gen-xhtml-thumbnails
diff options
context:
space:
mode:
Diffstat (limited to 'include/gen-xhtml-thumbnails')
-rwxr-xr-xinclude/gen-xhtml-thumbnails7
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++;