aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/img.pm
diff options
context:
space:
mode:
authorPer Carlson <per.carlson@ventelo.no>2011-11-17 22:59:31 +0100
committerPer Carlson <per.carlson@ventelo.no>2011-11-17 22:59:31 +0100
commit937c0742322065452a204069e0ba5abc625ec0c6 (patch)
tree4dff2f02c7fc93bfe713e740eb8eb14d1da15731 /IkiWiki/Plugin/img.pm
parent0c1176f0133f31776a50b11f38e752571e855b40 (diff)
downloadikiwiki-937c0742322065452a204069e0ba5abc625ec0c6.tar
ikiwiki-937c0742322065452a204069e0ba5abc625ec0c6.tar.gz
Always use true image size
Diffstat (limited to 'IkiWiki/Plugin/img.pm')
-rw-r--r--IkiWiki/Plugin/img.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/img.pm b/IkiWiki/Plugin/img.pm
index b98e843d4..a28d6a6d5 100644
--- a/IkiWiki/Plugin/img.pm
+++ b/IkiWiki/Plugin/img.pm
@@ -132,9 +132,9 @@ sub preprocess (@) {
$imglink = $file;
}
}
-
- $dwidth = $im->Get("width") unless defined $dwidth;
- $dheight = $im->Get("height") unless defined $dheight;
+ # always get the true size of the resized image
+ $dwidth = $im->Get("width");
+ $dheight = $im->Get("height");
}
}
else {