X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/344a50f5b9594d34eb70bea64c85e46e01765546..7f591d22d9fbfab836798fe9e5a3dc71b1c5b9f7:/IkiWiki/Plugin/img.pm?ds=inline 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");