From 937c0742322065452a204069e0ba5abc625ec0c6 Mon Sep 17 00:00:00 2001 From: Per Carlson Date: Thu, 17 Nov 2011 22:59:31 +0100 Subject: Always use true image size --- IkiWiki/Plugin/img.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'IkiWiki') 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 { -- cgit v1.2.3