aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/img.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-11-17 18:47:51 -0400
committerJoey Hess <joey@kitenet.net>2011-11-17 18:47:51 -0400
commit2872e1d738cafcd884f987f0efeea3fa83c4f470 (patch)
treec1ca2cb871a31f33f504f62ca8262eadb03e09bf /IkiWiki/Plugin/img.pm
parent344a50f5b9594d34eb70bea64c85e46e01765546 (diff)
downloadikiwiki-2872e1d738cafcd884f987f0efeea3fa83c4f470.tar
ikiwiki-2872e1d738cafcd884f987f0efeea3fa83c4f470.tar.gz
cleanup now unused setting
Diffstat (limited to 'IkiWiki/Plugin/img.pm')
-rw-r--r--IkiWiki/Plugin/img.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/img.pm b/IkiWiki/Plugin/img.pm
index a28d6a6d5..b92e24cc0 100644
--- a/IkiWiki/Plugin/img.pm
+++ b/IkiWiki/Plugin/img.pm
@@ -118,7 +118,6 @@ sub preprocess (@) {
error sprintf(gettext("failed to read %s: %s"), $outfile, $r) if $r;
}
else {
- ($dwidth, $dheight)=($w, $h);
$r = $im->Resize(geometry => "${w}x${h}");
error sprintf(gettext("failed to resize: %s"), $r) if $r;
@@ -132,6 +131,7 @@ sub preprocess (@) {
$imglink = $file;
}
}
+
# always get the true size of the resized image
$dwidth = $im->Get("width");
$dheight = $im->Get("height");