From 2872e1d738cafcd884f987f0efeea3fa83c4f470 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 17 Nov 2011 18:47:51 -0400 Subject: [PATCH] cleanup now unused setting --- IkiWiki/Plugin/img.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.26.2