Hi, it occurred to me that in my last message, I did not include the image sizer codes. We have since discovered that if we remove the image sizer, the pictures all show, but obviously they are all different sizes. So, we know the error is in image sizer and it is quite important that all the pictures be a consistent size. Here are the codes for that:
*/
//$fd = fopen($filename, "r");
$imageInfo = getimagesize($filename);
//fclose ($fd);
$width = $imageInfo[0];
$height = $imageInfo[1];
// if there's no picture.
if ( empty($imageInfo) ) return " ";
$widthIndex = $width / $maxWidth;
$heightIndex = $height / $maxHeight;
if ($widthIndex > $heightIndex) $divisor = $widthIndex;
else $divisor = $heightIndex;
// Don't let the image get blown up too big
if ($divisor < 1) $divisor = 1;
if ($imageInfo[2] == 1) {
/ For a gif divide by an int.
Round divisor up or down depending on whether we are in
"approximate" mode.
/
if ($divisor != (int)$divisor) {
if ($approximate) $divisor = (int)$divisor;
else $divisor = (int)$divisor + 1;
}
}
$myString = " height=".(int)($height/$divisor).
" width=".(int)($width/$divisor);
/* For debugging:
echo "<br>Picture stats:<br>";
echo "filename: ", $filename;
echo "Orig. Ht.:", $height;
echo " Orig. Wdth.:", $width;
echo "<br>Max Ht.:", $maxHeight;
echo " Max Wdth.:", $maxWidth;
echo "<br>Divisor: ",$divisor;
echo "<br>Result: ", $myString;
*/
return $myString;
Once again, thanks for taking the time to help!