summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-01-24 21:23:54 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-01-24 21:23:54 +0100
commitfe921488212bad336185b87a803f0e44fe69518f (patch)
tree87b8b1a95d65ffa685872fe8730497d2eaf3b5e5 /bin
parent9a403616addd0663a3f261aae94c17fd37f37aad (diff)
Resize image if width _or_ height are too big. Not _and_.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gen-xhtml-thumbnails2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/gen-xhtml-thumbnails b/bin/gen-xhtml-thumbnails
index 8088975..325c1d3 100755
--- a/bin/gen-xhtml-thumbnails
+++ b/bin/gen-xhtml-thumbnails
@@ -146,7 +146,7 @@ foreach my $file (@files) {
my $image = Image::Imlib2->load($file);
($dx, $dy) = ($image->width, $image->height);
- if ($dx > $thumb_max_dim and $dy > $thumb_max_dim) {
+ if ($dx > $thumb_max_dim or $dy > $thumb_max_dim) {
if ($dx > $dy) {
$thumb = $image->create_scaled_image($thumb_max_dim, 0);
}