summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}