|
Okay well Arnie
The solution is quite simple for that
if ( file_exists($checklink) ) {
$image_stats = @getimagesize( $checklink );
$width = $image_stats[0];
$height = $image_stats[1];
$catimage = get_thumbtmpl( $id, $thumbrc, $height, $width, $thumbtag, $pcat, $thislink );
}
Move it up into the if statement where it checks to see if there is an image to get the width and height on.
The templates for those all have background position center already.
|