$im = Image::Magick->new;
$r = $im->Read($outfile);
error sprintf(gettext("failed to read %s: %s"), $outfile, $r) if $r;
-
- $dwidth = $im->Get("width");
- $dheight = $im->Get("height");
}
else {
($dwidth, $dheight)=($w, $h);
$imglink = $file;
}
}
+
+ $dwidth = $im->Get("width") unless defined $dwidth;
+ $dheight = $im->Get("height") unless defined $dheight;
}
}
else {
* creation_day() etc use local time, not gmtime. To match calendars, which
use local time.
+ * img: Fill in missing height or width when scaling image.
-- Joey Hess <joeyh@debian.org> Mon, 31 May 2010 20:44:17 -0400
When I set up my picture page with `\[[!img defaults size=300x]]` then the html validator complains that the value for height is missing and the IE browsers won't show the pictures up at all; no problems with ff tho. If I set up my picture page with `\[[!img defaults size=300x300]]` then all the images are funny stretched. What am I doing wrong?
> This is a bug. --[[Joey]]
+
+> And .. [[fixed|done]] --[[Joey]]