diff options
author | Per Carlson <per.carlson@ventelo.no> | 2011-11-17 22:59:31 +0100 |
---|---|---|
committer | Per Carlson <per.carlson@ventelo.no> | 2011-11-17 22:59:31 +0100 |
commit | 937c0742322065452a204069e0ba5abc625ec0c6 (patch) | |
tree | 4dff2f02c7fc93bfe713e740eb8eb14d1da15731 /IkiWiki/Plugin | |
parent | 0c1176f0133f31776a50b11f38e752571e855b40 (diff) | |
download | ikiwiki-937c0742322065452a204069e0ba5abc625ec0c6.tar ikiwiki-937c0742322065452a204069e0ba5abc625ec0c6.tar.gz |
Always use true image size
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/img.pm | 6 |
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 { |