* (bug 1242) category list now show on edit page
* Skip sidebar entries where link text is '-'
* Convert non-UTF-8 URL parameters even if referer is local
+* (bug 2460) <img> width & height properly filled when resizing image
=== Caveats ===
$width = $img->getWidth() * $height / $img->getHeight();
}
if ( '' == $manual_thumb ) {
- $url = $img->createThumb( $width );
+ $thumb = $img->getThumbnail( $width );
+ $height = $thumb->height;
+ $url = $thumb->getUrl( );
}
}
//$s .= "<br />{$alt}<br />{$url}<br />\n";
} else {
$s = '<a href="'.$u.'" class="image" title="'.$alt.'">' .
- '<img src="'.$url.'" alt="'.$alt.'" longdesc="'.$u.'" /></a>';
+ '<img src="'.$url.'" alt="'.$alt.'" ' .
+ 'width="'.$width.'" height="'.$height.'" ' .
+ 'longdesc="'.$u.'" /></a>';
}
if ( '' != $align ) {
$s = "<div class=\"float{$align}\"><span>{$s}</span></div>";