projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c1176f
)
Always use true image size
author
Per Carlson
<per.carlson@ventelo.no>
Thu, 17 Nov 2011 21:59:31 +0000
(22:59 +0100)
committer
Per Carlson
<per.carlson@ventelo.no>
Thu, 17 Nov 2011 21:59:31 +0000
(22:59 +0100)
IkiWiki/Plugin/img.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/img.pm
b/IkiWiki/Plugin/img.pm
index b98e843d436b1aed68ca13a12da94ee44a74dd06..a28d6a6d519125f0d459ce6b6107dbee06683939 100644
(file)
--- 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 {