Thank you for the tip about
, will definately do that next time. Well in the source code for the index page for the first image (which does display)looks like so:
[code=html]<td><img src="imagesizer.php?imgfile=image1.jpg" border="0"></td>
the second image tag in the source code (which won't display) looks like this:
<td><img src="imagesizer.php?imgfile=image2.jpg" border="0"></td>
and theres also a third and fourth but you can pretty much tell that its pretty much the same except the imgfile variable is incremented in the file number.
Heres the code i have in imagesizer.php:
header('Content-type: image/jpeg');
list($width, $height) = getimagesize('images/' . $imgfile);
$newwidth = 100;
$newheight = 100;
$thumb = ImageCreateTrueColor($newwidth,$newheight);
$source = imagecreatefromjpeg($imgfile);
imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
imagejpeg($thumb);