View Single Post
Old September 6th, 2005, 09:59 AM   #11 (permalink)
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote