summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-01-26 16:20:58 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2010-01-26 16:20:58 +0100
commitea1d01e91689fec7f567ba0f4c2e81429a8ee88b (patch)
tree8baf69a82d64e6620409793bc9a2ff096149d0ae
parent59cf5a7a5f08e95a25ca189a1f4359025e7fcdf0 (diff)
Add a new constant
-rwxr-xr-xbin/gen-xhtml-thumbnails5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/gen-xhtml-thumbnails b/bin/gen-xhtml-thumbnails
index cd40658..dc44ce7 100755
--- a/bin/gen-xhtml-thumbnails
+++ b/bin/gen-xhtml-thumbnails
@@ -9,6 +9,7 @@ use constant {
DEFAULT_FILEMODE => oct(644),
THUMB_MAX_DIM => 150,
THUMB_QUALITY => 60,
+ THUMB_SPACING => 1.1,
};
my $directory = '.';
@@ -87,8 +88,8 @@ foreach my $file (sort(@files)) {
else {
printf {$index} (
'<div style="float: left; width: %dpx; height: %dpx">',
- THUMB_MAX_DIM * 1.1,
- THUMB_MAX_DIM * 1.1,
+ THUMB_MAX_DIM * THUMB_SPACING,
+ THUMB_MAX_DIM * THUMB_SPACING,
);
}