summaryrefslogtreecommitdiff
path: root/bin/gen-xhtml-thumbnails
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-02-17 21:34:58 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-02-17 21:34:58 +0100
commit5ab6152e3d91af8ae4c1eb31a352415e52239f57 (patch)
treed0f324f98ffc046c4196f04597d4d0f235409c88 /bin/gen-xhtml-thumbnails
parentfe921488212bad336185b87a803f0e44fe69518f (diff)
Change defaults: Show image names, thumb dimensions -> 200 pixels
Diffstat (limited to 'bin/gen-xhtml-thumbnails')
-rwxr-xr-xbin/gen-xhtml-thumbnails10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/gen-xhtml-thumbnails b/bin/gen-xhtml-thumbnails
index 325c1d3..369b29a 100755
--- a/bin/gen-xhtml-thumbnails
+++ b/bin/gen-xhtml-thumbnails
@@ -19,10 +19,10 @@ my $thumbdir = "$directory/.thumbs";
my $indexfile = "$directory/index.xhtml";
my $title = '';
my $css_line = '';
-my $thumb_max_dim = 150;
+my $thumb_max_dim = 200;
my $thumb_quality = 75;
my $thumb_spacing = 1.1;
-my $thumb_show_names = 0;
+my $thumb_no_names = 0;
my $css_source;
my ($dx, $dy);
my @files;
@@ -47,7 +47,7 @@ GetOptions(
'c|css=s' => \$css_source,
'd|size=i' => \$thumb_max_dim,
's|spacing=f' => \$thumb_spacing,
- 'n|show-name' => \$thumb_show_names,
+ 'n|no-names' => \$thumb_no_names,
't|title=s' => \$title,
'q|quality=i' => \$thumb_quality,
'x|archive' => \$create_archive,
@@ -111,13 +111,13 @@ foreach my $file (@files) {
'font-size: 80%',
'float: left',
$thumb_max_dim * $thumb_spacing,
- ($thumb_max_dim * $thumb_spacing) + ($thumb_show_names ? 10 : 0),
+ ($thumb_max_dim * $thumb_spacing) + ($thumb_no_names ? 0 : 10),
);
}
print {$index} "<a href=\"$file\"><img src=\".thumbs/$file\" alt=\"$file\" /></a>\n";
- if ($thumb_show_names) {
+ if (not $thumb_no_names) {
print {$index} "<br />\n";
if ($css_source) {