projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
344a50f
)
cleanup now unused setting
author
Joey Hess
<joey@kitenet.net>
Thu, 17 Nov 2011 22:47:51 +0000
(18:47 -0400)
committer
Joey Hess
<joey@kitenet.net>
Thu, 17 Nov 2011 22:47:51 +0000
(18:47 -0400)
IkiWiki/Plugin/img.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/img.pm
b/IkiWiki/Plugin/img.pm
index a28d6a6d519125f0d459ce6b6107dbee06683939..b92e24cc06fb93d8d88adcf1517903e46e49dc25 100644
(file)
--- 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 {
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;
$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;
}
}
$imglink = $file;
}
}
+
# always get the true size of the resized image
$dwidth = $im->Get("width");
$dheight = $im->Get("height");
# always get the true size of the resized image
$dwidth = $im->Get("width");
$dheight = $im->Get("height");