diff options
Diffstat (limited to 'bin/gen-xhtml-thumbnails')
-rwxr-xr-x | bin/gen-xhtml-thumbnails | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/bin/gen-xhtml-thumbnails b/bin/gen-xhtml-thumbnails index db9a43c..b682161 100755 --- a/bin/gen-xhtml-thumbnails +++ b/bin/gen-xhtml-thumbnails @@ -81,11 +81,17 @@ foreach my $file (sort(@files)) { my $image = Image::Imlib2->load($file); my $thumb; - printf {$index} ( - '<div style="float: left; width: %dpx; height: %dpx">', - THUMB_MAX_DIM * 1.1, - THUMB_MAX_DIM * 1.1, - ); + if (defined($css_source)) { + print {$index} '<div class="imgbox">'; + } + else { + 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++; |